!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/home/mnnews/public_html/phpads/admin/   drwxr-xr-x
Free 3.96 GB of 27.03 GB (14.66%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     zone-index.php (9.76 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php // $Revision: 1.19 $

/************************************************************************/
/* phpAdsNew 2                                                          */
/* ===========                                                          */
/*                                                                      */
/* Copyright (c) 2001 by the phpAdsNew developers                       */
/* http://sourceforge.net/projects/phpadsnew                            */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/



// Include required files
require ("config.php");
require (
"lib-statistics.inc.php");
require (
"lib-size.inc.php");


// Security check
phpAds_checkAccess(phpAds_Admin+phpAds_Affiliate);



/*********************************************************/
/* Affiliate interface security                          */
/*********************************************************/

if (phpAds_isUser(phpAds_Affiliate))
{
    
$affiliateid = phpAds_getUserID();
}



/*********************************************************/
/* Get preferences                                       */
/*********************************************************/

if (!isset($listorder))
{
    if (isset(
$Session['prefs']['zone-index.php']['listorder']))
        
$listorder = $Session['prefs']['zone-index.php']['listorder'];
    else
        
$listorder = '';
}

if (!isset(
$orderdirection))
{
    if (isset(
$Session['prefs']['zone-index.php']['orderdirection']))
        
$orderdirection = $Session['prefs']['zone-index.php']['orderdirection'];
    else
        
$orderdirection = '';
}



/*********************************************************/
/* HTML framework                                        */
/*********************************************************/

if (phpAds_isUser(phpAds_Admin))
{
    
$res = phpAds_dbQuery("
        SELECT
            *
        FROM
            "
.$phpAds_config['tbl_affiliates']."
        "
) or phpAds_sqlDie();
    
    while (
$row = phpAds_dbFetchArray($res))
    {
        
phpAds_PageContext (
            
phpAds_buildAffiliateName ($row['affiliateid'], $row['name']),
            
"zone-index.php?affiliateid=".$row['affiliateid'],
            
$affiliateid == $row['affiliateid']
        );
    }
    
    
phpAds_PageShortcut($strAffiliateHistory, 'stats-affiliate-history.php?affiliateid='.$affiliateid, 'images/icon-statistics.gif');    
    
    
phpAds_PageHeader("4.2.3");
        echo
"<img src='images/icon-affiliate.gif' align='absmiddle'>&nbsp;<b>".phpAds_getAffiliateName($affiliateid)."</b><br><br><br>";
        
phpAds_ShowSections(array("4.2.2", "4.2.3"));
}
else
{
    
$sections[] = "2.1";
    if (
phpAds_isAllowed(phpAds_ModifyInfo)) $sections[] = "2.2";
    
    
phpAds_PageHeader("2.1");
        echo
"<img src='images/icon-affiliate.gif' align='absmiddle'>&nbsp;<b>".phpAds_getAffiliateName($affiliateid)."</b><br><br><br>";
        
phpAds_ShowSections($sections);
}



/*********************************************************/
/* Main code                                             */
/*********************************************************/

// Get clients & campaign and build the tree

$res_zones = phpAds_dbQuery("
        SELECT
            *
        FROM
            "
.$phpAds_config['tbl_zones']."
        WHERE
            affiliateid = "
.$affiliateid."
        "
.phpAds_getZoneListOrder ($listorder, $orderdirection)."
        "
) or phpAds_sqlDie();




if (
phpAds_isUser(phpAds_Admin) || phpAds_isAllowed(phpAds_AddZone))
{
    echo
"<img src='images/icon-zone.gif' border='0' align='absmiddle'>&nbsp;";
    echo
"<a href='zone-edit.php?affiliateid=".$affiliateid."'>$strAddNewZone</a>&nbsp;&nbsp;";
    
phpAds_ShowBreak();
}



echo
"<br><br>";
echo
"<table border='0' width='100%' cellpadding='0' cellspacing='0'>";    


echo
"<tr height='25'>";
echo
'<td height="25"><b>&nbsp;&nbsp;<a href="zone-index.php?affiliateid='.$affiliateid.'&listorder=name">'.$GLOBALS['strName'].'</a>';

if ((
$listorder == "name") || ($listorder == ""))
{
    if  ((
$orderdirection == "") || ($orderdirection == "down"))
    {
        echo
' <a href="zone-index.php?affiliateid='.$affiliateid.'&orderdirection=up">';
        echo
'<img src="images/caret-ds.gif" border="0" alt="" title="">';
    }
    else
    {
        echo
' <a href="zone-index.php?affiliateid='.$affiliateid.'&orderdirection=down">';
        echo
'<img src="images/caret-u.gif" border="0" alt="" title="">';
    }
    echo
'</a>';
}

echo
'</b></td>';
echo
'<td height="25"><b><a href="zone-index.php?affiliateid='.$affiliateid.'&listorder=id">'.$GLOBALS['strID'].'</a>';

if (
$listorder == "id")
{
    if  ((
$orderdirection == "") || ($orderdirection == "down"))
    {
        echo
' <a href="zone-index.php?affiliateid='.$affiliateid.'&orderdirection=up">';
        echo
'<img src="images/caret-ds.gif" border="0" alt="" title="">';
    }
    else
    {
        echo
' <a href="zone-index.php?affiliateid='.$affiliateid.'&orderdirection=down">';
        echo
'<img src="images/caret-u.gif" border="0" alt="" title="">';
    }
    echo
'</a>';
}

echo
'</b>&nbsp;&nbsp;&nbsp;</td>';
echo
'<td height="25"><b><a href="zone-index.php?affiliateid='.$affiliateid.'&listorder=size">'.$GLOBALS['strSize'].'</a>';

if (
$listorder == "size")
{
    if  ((
$orderdirection == "") || ($orderdirection == "down"))
    {
        echo
' <a href="zone-index.php?affiliateid='.$affiliateid.'&orderdirection=up">';
        echo
'<img src="images/caret-ds.gif" border="0" alt="" title="">';
    }
    else
    {
        echo
' <a href="zone-index.php?affiliateid='.$affiliateid.'&orderdirection=down">';
        echo
'<img src="images/caret-u.gif" border="0" alt="" title="">';
    }
    echo
'</a>';
}

echo
"</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>";
echo
"<td height='25'>&nbsp;</td>";
echo
"</tr>";

echo
"<tr height='1'><td colspan='4' bgcolor='#888888'><img src='images/break.gif' height='1' width='100%'></td></tr>";


if (
phpAds_dbNumRows($res_zones) == 0)
{
    echo
"<tr height='25' bgcolor='#F6F6F6'><td height='25' colspan='4'>";
    echo
"&nbsp;&nbsp;".$strNoZones;
    echo
"</td></tr>";
    
    echo
"<td colspan='4' bgcolor='#888888'><img src='images/break.gif' height='1' width='100%'></td>";
}

$i=0;
while (
$row_zones = phpAds_dbFetchArray($res_zones))
{
    if (
$i > 0) echo "<td colspan='4' bgcolor='#888888'><img src='images/break.gif' height='1' width='100%'></td>";
    echo
"<tr height='25' ".($i%2==0?"bgcolor='#F6F6F6'":"").">";
    
    echo
"<td height='25'>";
    echo
"&nbsp;&nbsp;<img src='images/icon-zone.gif' align='absmiddle'>&nbsp;";
    
    if (
phpAds_isUser(phpAds_Admin) || phpAds_isAllowed(phpAds_EditZone))
        echo
"<a href='zone-edit.php?affiliateid=".$affiliateid."&zoneid=".$row_zones['zoneid']."'>".$row_zones['zonename']."</a>";
    else
        echo
$row_zones['zonename'];
    
    echo
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
    echo
"</td>";
    
    
// ID
    
echo "<td height='25'>".$row_zones['zoneid']."</td>";
    
    
// Size
    
if ($row_zones['width'] == -1) $row_zones['width'] = '*';
    if (
$row_zones['height'] == -1) $row_zones['height'] = '*';
    
    echo
"<td height='25'>".phpAds_getBannerSize($row_zones['width'], $row_zones['height'])."</td>";
    echo
"<td>&nbsp;</td>";
    echo
"</tr>";
    
    
// Description
    
echo "<tr height='25' ".($i%2==0?"bgcolor='#F6F6F6'":"").">";
    echo
"<td>&nbsp;</td>";
    echo
"<td height='25' colspan='3'>".stripslashes($row_zones['description'])."</td>";
    echo
"</tr>";
    
    echo
"<tr height='1'>";
    echo
"<td ".($i%2==0?"bgcolor='#F6F6F6'":"")."><img src='images/spacer.gif' width='1' height='1'></td>";
    echo
"<td colspan='3' bgcolor='#888888'><img src='images/break-l.gif' height='1' width='100%'></td>";
    echo
"</tr>";
    echo
"<tr height='25' ".($i%2==0?"bgcolor='#F6F6F6'":"").">";
    
    
// Empty
    
echo "<td>&nbsp;</td>";
    
    
// Button 1, 2 & 3
    
echo "<td height='25' colspan='3'>";
    if (
phpAds_isUser(phpAds_Admin) || phpAds_isAllowed(phpAds_LinkBanners)) echo "<a href='zone-include.php?affiliateid=".$affiliateid."&zoneid=".$row_zones['zoneid']."'><img src='images/icon-zone-linked.gif' border='0' align='absmiddle' alt='$strIncludedBanners'>&nbsp;$strIncludedBanners</a>&nbsp;&nbsp;&nbsp;&nbsp;";
    echo
"<a href='zone-probability.php?affiliateid=".$affiliateid."&zoneid=".$row_zones['zoneid']."'><img src='images/icon-zone-probability.gif' border='0' align='absmiddle' alt='$strProbability'>&nbsp;$strProbability</a>&nbsp;&nbsp;&nbsp;&nbsp;";
    echo
"<a href='zone-invocation.php?affiliateid=".$affiliateid."&zoneid=".$row_zones['zoneid']."'><img src='images/icon-generatecode.gif' border='0' align='absmiddle' alt='$strInvocationcode'>&nbsp;$strInvocationcode</a>&nbsp;&nbsp;&nbsp;&nbsp;";
    if (
phpAds_isUser(phpAds_Admin) || phpAds_isAllowed(phpAds_DeleteZone)) echo "<a href='zone-delete.php?affiliateid=".$affiliateid."&zoneid=".$row_zones['zoneid']."&returnurl=zone-index.php'".phpAds_DelConfirm($strConfirmDeleteZone)."><img src='images/icon-recycle.gif' border='0' align='absmiddle' alt='$strDelete'>&nbsp;$strDelete</a>&nbsp;&nbsp;&nbsp;&nbsp;";
    echo
"</td></tr>";
    
    
$i++;
}

if (
phpAds_dbNumRows($res_zones) > 0)
{
    echo
"<tr height='1'><td colspan='4' bgcolor='#888888'><img src='images/break.gif' height='1' width='100%'></td></tr>";
}

echo
"</table>";
echo
"<br><br>";



/*********************************************************/
/* Store preferences                                     */
/*********************************************************/

$Session['prefs']['zone-index.php']['listorder'] = $listorder;
$Session['prefs']['zone-index.php']['orderdirection'] = $orderdirection;

phpAds_SessionDataStore();



/*********************************************************/
/* HTML framework                                        */
/*********************************************************/

phpAds_PageFooter();

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0044 ]--