!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:     client-campaigns.php (14.9 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php // $Revision: 1.4 $

/************************************************************************/
/* 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");


// Security check
phpAds_checkAccess(phpAds_Admin);



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

$res = phpAds_dbQuery("
    SELECT
        *
    FROM
        "
.$phpAds_config['tbl_clients']."
    WHERE
        parent = 0  
    "
) or phpAds_sqlDie();

while (
$row = phpAds_dbFetchArray($res))
{
    
phpAds_PageContext (
        
phpAds_buildClientName ($row['clientid'], $row['clientname']),
        
"client-campaigns.php?clientid=".$row['clientid'],
        
$clientid == $row['clientid']
    );
}

phpAds_PageShortcut($strClientHistory, 'stats-client-history.php?clientid='.$clientid, 'images/icon-statistics.gif');

phpAds_PageHeader("4.1.3");
    echo
"<img src='images/icon-client.gif' align='absmiddle'>&nbsp;<b>".phpAds_getClientName($clientid)."</b><br><br><br>";
    
phpAds_ShowSections(array("4.1.2", "4.1.3"));



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

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

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

if (isset(
$Session['prefs']['client-campaigns.php'][$clientid]['nodes']))
    
$node_array = explode (",", $Session['prefs']['client-campaigns.php'][$clientid]['nodes']);
else
    
$node_array = array();



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

// Get clients & campaign and build the tree
$res_clients = phpAds_dbQuery("
    SELECT
        *,
        DATE_FORMAT(expire, '$date_format') AS expire_f,
        DATE_FORMAT(activate, '$date_format') AS activate_f
    FROM
        "
.$phpAds_config['tbl_clients']."
    WHERE
        parent = "
.$clientid."
    "
.phpAds_getListOrder ($listorder, $orderdirection)."
"
) or phpAds_sqlDie();


while (
$row_clients = phpAds_dbFetchArray($res_clients))
{
    
$campaigns[$row_clients['clientid']] = $row_clients;
    
$campaigns[$row_clients['clientid']]['expand'] = 0;
    
$campaigns[$row_clients['clientid']]['count'] = 0;
}


// Get the banners for each campaign
$res_banners = phpAds_dbQuery("
    SELECT
        bannerid,
        clientid,
        alt,
        description,
        active,
        storagetype
    FROM
        "
.$phpAds_config['tbl_banners']."
        "
.phpAds_getBannerListOrder ($listorder, $orderdirection)."
    "
) or phpAds_sqlDie();

while (
$row_banners = phpAds_dbFetchArray($res_banners))
{
    if (isset(
$campaigns[$row_banners['clientid']]))
    {
        
$banners[$row_banners['bannerid']] = $row_banners;
        
$campaigns[$row_banners['clientid']]['count']++;
    }
}



// Add ID found in expand to expanded nodes
if (isset($expand) && $expand != '')
    
$node_array[] = $expand;

$node_array_size = sizeof($node_array);
for (
$i=0; $i < $node_array_size;$i++)
{
    if (isset(
$collapse) && $collapse == $node_array[$i])
        unset (
$node_array[$i]);
    else
    {
        if (isset(
$campaigns[$node_array[$i]]))
            
$campaigns[$node_array[$i]]['expand'] = 1;
    }
}

// Build Tree
if (isset($banners) && is_array($banners) && count($banners) > 0)
{
    
// Add banner to campaigns
    
for (reset($banners);$bkey=key($banners);next($banners))
        
$campaigns[$banners[$bkey]['clientid']]['banners'][$bkey] = $banners[$bkey];
    
    unset (
$banners);
}


echo
"<img src='images/icon-campaign.gif' border='0' align='absmiddle'>&nbsp;";
echo
"<a href='campaign-edit.php?clientid=".$clientid."'>".$strAddCampaign."</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' width='40%'><b>&nbsp;&nbsp;<a href='client-campaigns.php?clientid=".$clientid."&listorder=name'>".$GLOBALS['strName']."</a>";

if ((
$listorder == "name") || ($listorder == ""))
{
    if  ((
$orderdirection == "") || ($orderdirection == "down"))
    {
        echo
' <a href="client-campaigns.php?clientid='.$clientid.'&orderdirection=up">';
        echo
'<img src="images/caret-ds.gif" border="0" alt="" title="">';
    }
    else
    {
        echo
' <a href="client-campaigns.php?clientid='.$clientid.'&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="client-campaigns.php?clientid='.$clientid.'&listorder=id">'.$GLOBALS['strID'].'</a>';

if (
$listorder == "id")
{
    if  ((
$orderdirection == "") || ($orderdirection == "down"))
    {
        echo
' <a href="client-campaigns.php?clientid='.$clientid.'&orderdirection=up">';
        echo
'<img src="images/caret-ds.gif" border="0" alt="" title="">';
    }
    else
    {
        echo
' <a href="client-campaigns.php?clientid='.$clientid.'&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
"<td height='25'>&nbsp;</td>";
echo
"<td height='25'>&nbsp;</td>";
echo
"</tr>";

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


if (!isset(
$campaigns) || !is_array($campaigns) || count($campaigns) == 0)
{
    echo
"<tr height='25' bgcolor='#F6F6F6'><td height='25' colspan='5'>";
    echo
"&nbsp;&nbsp;".$strNoCampaigns;
    echo
"</td></tr>";
    
    echo
"<td colspan='5' bgcolor='#888888'><img src='images/break.gif' height='1' width='100%'></td>";
}
else
{
    
$i=0;
    
    
    for (
reset($campaigns);$ckey=key($campaigns);next($campaigns))
    {
        
// Icon & name
        
echo "<tr height='25' ".($i%2==0?"bgcolor='#F6F6F6'":"")."><td height='25'>";
        echo
"&nbsp;";
        
        if (isset(
$campaigns[$ckey]['banners']))
        {
            if (
$campaigns[$ckey]['expand'] == '1')
                echo
"<a href='client-campaigns.php?clientid=".$clientid."&collapse=".$campaigns[$ckey]['clientid']."'><img src='images/triangle-d.gif' align='absmiddle' border='0'></a>&nbsp;";
            else
                echo
"<a href='client-campaigns.php?clientid=".$clientid."&expand=".$campaigns[$ckey]['clientid']."'><img src='images/".$phpAds_TextDirection."/triangle-l.gif' align='absmiddle' border='0'></a>&nbsp;";
        }
        else
            echo
"<img src='images/spacer.gif' height='16' width='16' align='absmiddle'>&nbsp;";
        
        
        if (
$campaigns[$ckey]['active'] == 't')
            echo
"<img src='images/icon-campaign.gif' align='absmiddle'>&nbsp;";
        else
            echo
"<img src='images/icon-campaign-d.gif' align='absmiddle'>&nbsp;";
        
        echo
"<a href='campaign-edit.php?clientid=".$clientid."&campaignid=".$campaigns[$ckey]['clientid']."'>".$campaigns[$ckey]['clientname']."</td>";
        echo
"</td>";
        
        
// ID
        
echo "<td height='25'>".$campaigns[$ckey]['clientid']."</td>";
        
        
// Button 1
        
echo "<td height='25' align='".$phpAds_TextAlignRight."'>";
        if (
$campaigns[$ckey]['expand'] == '1' || !isset($campaigns[$ckey]['banners']))
            echo
"<a href='banner-edit.php?clientid=".$clientid."&campaignid=".$campaigns[$ckey]['clientid']."'><img src='images/icon-banner-stored.gif' border='0' align='absmiddle' alt='$strCreate'>&nbsp;$strCreate</a>&nbsp;&nbsp;&nbsp;&nbsp;";
        else
            echo
"&nbsp;";
        echo
"</td>";
        
        
// Button 2
        
echo "<td height='25' align='".$phpAds_TextAlignRight."'>";
        echo
"<a href='campaign-index.php?clientid=".$clientid."&campaignid=".$campaigns[$ckey]['clientid']."'><img src='images/icon-overview.gif' border='0' align='absmiddle' alt='$strOverview'>&nbsp;$strOverview</a>&nbsp;&nbsp;&nbsp;&nbsp;";
        echo
"</td>";
        
        
// Button 3
        
echo "<td height='25' align='".$phpAds_TextAlignRight."'>";
        echo
"<a href='campaign-delete.php?clientid=".$clientid."&campaignid=".$campaigns[$ckey]['clientid']."&returnurl=client-campaigns.php'".phpAds_DelConfirm($strConfirmDeleteCampaign)."><img src='images/icon-recycle.gif' border='0' align='absmiddle' alt='$strDelete'>&nbsp;$strDelete</a>&nbsp;&nbsp;&nbsp;&nbsp;";
        echo
"</td></tr>";
        
        if (
$campaigns[$ckey]['expand'] == '1' && isset($campaigns[$ckey]['banners']))
        {
            
$banners = $campaigns[$ckey]['banners'];
            for (
reset($banners);$bkey=key($banners);next($banners))
            {
                
$name = $strUntitled;
                if (isset(
$banners[$bkey]['alt']) && $banners[$bkey]['alt'] != '') $name = $banners[$bkey]['alt'];
                if (isset(
$banners[$bkey]['description']) && $banners[$bkey]['description'] != '') $name = $banners[$bkey]['description'];
                
                
$name = phpAds_breakString ($name, '30');
                
                
// Divider
                
echo "<tr height='1'>";
                echo
"<td ".($i%2==0?"bgcolor='#F6F6F6'":"")."><img src='images/spacer.gif' width='1' height='1'></td>";
                echo
"<td colspan='4' bgcolor='#888888'><img src='images/break-l.gif' height='1' width='100%'></td>";
                echo
"</tr>";
                
                
// Icon & name
                
echo "<tr height='25' ".($i%2==0?"bgcolor='#F6F6F6'":"").">";
                echo
"<td height='25'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
                
                if (
$banners[$bkey]['active'] == 't' && $campaigns[$ckey]['active'] == 't')
                {
                    if (
$banners[$bkey]['storagetype'] == 'html')
                    {
                        echo
"<img src='images/icon-banner-html.gif' align='absmiddle'>";
                    }
                    elseif (
$banners[$bkey]['storagetype'] == 'url')
                    {
                        echo
"<img src='images/icon-banner-url.gif' align='absmiddle'>";
                    }
                    else
                    {
                        echo
"<img src='images/icon-banner-stored.gif' align='absmiddle'>";
                    }
                }
                else
                {
                    if (
$banners[$bkey]['storagetype'] == 'html')
                    {
                        echo
"<img src='images/icon-banner-html-d.gif' align='absmiddle'>";
                    }
                    elseif (
$banners[$bkey]['storagetype'] == 'url')
                    {
                        echo
"<img src='images/icon-banner-url-d.gif' align='absmiddle'>";
                    }
                    else
                    {
                        echo
"<img src='images/icon-banner-stored-d.gif' align='absmiddle'>";
                    }
                }
                
                echo
"&nbsp;<a href='banner-edit.php?clientid=".$clientid."&campaignid=".$campaigns[$ckey]['clientid']."&bannerid=".$banners[$bkey]['bannerid']."'>".$name."</a></td>";
                
                
// ID
                
echo "<td height='25'>".$banners[$bkey]['bannerid']."</td>";
                
                
// Empty
                
echo "<td>&nbsp;</td>";
                
                
// Button 2
                
echo "<td height='25' align='".$phpAds_TextAlignRight."'>";
                if (
$phpAds_config['acl'])
                    echo
"<a href='banner-acl.php?clientid=".$clientid."&campaignid=".$campaigns[$ckey]['clientid']."&bannerid=".$banners[$bkey]['bannerid']."'><img src='images/icon-acl.gif' border='0' align='absmiddle' alt='$strACL'>&nbsp;$strACL</a>&nbsp;&nbsp;&nbsp;&nbsp;";
                else
                    echo
"&nbsp;";
                echo
"</td>";
                
                
// Button 3
                
echo "<td height='25' align='".$phpAds_TextAlignRight."'>";
                echo
"<a href='banner-delete.php?clientid=".$clientid."&campaignid=".$campaigns[$ckey]['clientid']."&bannerid=".$banners[$bkey]['bannerid']."&returnurl=client-campaigns.php'".phpAds_DelConfirm($strConfirmDeleteBanner)."><img src='images/icon-recycle.gif' border='0' align='absmiddle' alt='$strDelete'>&nbsp;$strDelete</a>&nbsp;&nbsp;&nbsp;&nbsp;";
                echo
"</td></tr>";
            }
        }
        
        if (
$phpAds_config['gui_show_campaign_info'])
        {
            echo
"<tr height='1'>";
            echo
"<td ".($i%2==0?"bgcolor='#F6F6F6'":"")."><img src='images/spacer.gif' width='1' height='1'></td>";
            echo
"<td colspan='4' bgcolor='#888888'><img src='images/break-l.gif' height='1' width='100%'></td>";
            echo
"</tr>";
            
            echo
"<tr ".($i%2==0?"bgcolor='#F6F6F6'":"")."><td colspan='1'>&nbsp;</td><td colspan='4'>";
            echo
"<table width='100%' cellpadding='0' cellspacing='0' border='0'>";
            
            echo
"<tr height='25'><td width='50%'>".$strViewsPurchased.": ".($campaigns[$ckey]['views'] > 0 ? $campaigns[$ckey]['views'] : $strUnlimited)."</td>";
            echo
"<td width='50%'>".$strClicksPurchased.": ".($campaigns[$ckey]['clicks'] > 0 ? $campaigns[$ckey]['clicks'] : $strUnlimited)."</td></tr>";
            
            echo
"<tr height='15'><td width='50%'>".$strActivationDate.": ".($campaigns[$ckey]['activate'] != '0000-00-00' ? $campaigns[$ckey]['activate_f'] : '-')."</td>";
            echo
"<td width='50%'>".$strExpirationDate.": ".($campaigns[$ckey]['expire'] != '0000-00-00' ? $campaigns[$ckey]['expire_f'] : '-')."</td></tr>";
            
            echo
"<tr height='25'><td width='50%'>".$strPriority.": ".($campaigns[$ckey]['target'] > 0 ? $strHigh : $strLow)."</td>";
            
            if (
$campaigns[$ckey]['target'] > 0)
                echo
"<td width='50%'>".$strTarget.": ".$campaigns[$ckey]['target']."</td></tr>";
            else
                echo
"<td width='50%'>".$strWeight.": ".$campaigns[$ckey]['weight']."</td></tr>";
            
            echo
"</table><br></td></tr>";
        }
        
        echo
"<tr height='1'><td colspan='5' bgcolor='#888888'><img src='images/break.gif' height='1' width='100%'></td></tr>";
        
$i++;
    }
}

if (
count($campaigns))
{
    echo
"<tr height='25'><td colspan='3' height='25'>";
    echo
"<img src='images/icon-recycle.gif' border='0' align='absmiddle'>&nbsp;<a href='campaign-delete.php?clientid=".$clientid."&returnurl=client-campaigns.php'".phpAds_DelConfirm($strConfirmDeleteAllCampaigns).">$strDeleteAllCampaigns</a>&nbsp;&nbsp;";
    echo
"</td></tr>";
}

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



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

$Session['prefs']['client-campaigns.php'][$clientid]['listorder'] = $listorder;
$Session['prefs']['client-campaigns.php'][$clientid]['orderdirection'] = $orderdirection;
$Session['prefs']['client-campaigns.php'][$clientid]['nodes'] = implode (",", $node_array);

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.0049 ]--