!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/   drwxr-xr-x
Free 4.04 GB of 27.03 GB (14.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     lib-warnings.inc.php (6.07 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php // $Revision: 1.3 $

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


// Set define to prevent duplicate include
define ('LIBWARNING_INCLUDED', true);


/*********************************************************/
/* Mail warning - preset is reached                         */
/*********************************************************/

function phpAds_warningMail ($campaign)
{
    global
$phpAds_config;
    global
$strViewsClicksLow, $strMailHeader, $strWarnClientTxt;
    global
$strMailNothingLeft, $strMailFooter;
    
    
    if (
$phpAds_config['warn_admin'] || $phpAds_config['warn_client'])
    {
        
// Get the client which belongs to this campaign
        
$clientresult = phpAds_dbQuery("SELECT * FROM ".$phpAds_config['tbl_clients']." WHERE clientid=".$campaign['parent']);
        if (
$client = phpAds_dbFetchArray($clientresult))
        {
            
// Load config from the database
            
include (phpAds_path.'/lib-dbconfig.inc.php');
            
phpAds_LoadDbConfig();
            
            
            
// Load client language strings
            
if (isset($client["language"]) && $client["language"] != "")
                include (
phpAds_path.'/language/'.$client['language'].'/default.lang.php');
            else
                include (
phpAds_path.'/language/'.$phpAds_config['language'].'/default.lang.php');
            
            
            
// Build email
            
$Subject = $strViewsClicksLow.": ".$campaign["clientname"];
            
            
$Body    = "$strMailHeader\n";
            
$Body     .= "$strWarnClientTxt\n";
            
$Body     .= "$strMailNothingLeft\n\n";
            
$Body   .= "$strMailFooter";
            
            
$Body    = str_replace ("{clientname}", $campaign["clientname"], $Body);
            
$Body     = str_replace ("{contact}", $client["contact"], $Body);
            
$Body    = str_replace ("{adminfullname}", $phpAds_config['admin_fullname'], $Body);
            
$Body    = str_replace ("{limit}", $phpAds_config['warn_limit'], $Body);
            
            
            
// Send email
            
if ($phpAds_config['warn_admin'])
                
phpAds_sendMail ($phpAds_config['admin_email'], $phpAds_config['admin_fullname'], $Subject, $Body);
            
            if (
$phpAds_config['warn_client'] && $client["email"] != '')
            {
                
phpAds_sendMail ($client['email'], $client['contact'], $Subject, $Body);
                
                if (
$phpAds_config['userlog_email'])
                    
phpAds_userlogAdd (phpAds_actionWarningMailed, $campaign['clientid'], $Subject."\n\n".$Body);
            }
        }
    }
}



/*********************************************************/
/* Mail warning - preset is reached                         */
/*********************************************************/

function phpAds_deactivateMail ($campaign)
{
    global
$phpAds_config;
    global
$strMailSubjectDeleted, $strMailHeader, $strMailClientDeactivated;
    global
$strNoMoreClicks, $strNoMoreViews, $strBeforeActivate, $strAfterExpire;
    global
$strBanner, $strMailNothingLeft, $strMailFooter, $strUntitled;
    
    
    
$clientresult = phpAds_dbQuery("SELECT * FROM ".$phpAds_config['tbl_clients']." WHERE clientid=".$campaign['parent']);
    if (
$client = phpAds_dbFetchArray($clientresult))
    {
        if (
$client["email"] != '' && $client["reportdeactivate"] == 't')
        {
            
// Load config from the database
            
include (phpAds_path.'/lib-dbconfig.inc.php');
            
phpAds_LoadDbConfig();
            
            
            
// Load client language strings
            
if (isset($client["language"]) && $client["language"] != "")
                include (
phpAds_path."/language/".$client["language"]."/default.lang.php");
            else
                include (
phpAds_path."/language/".$phpAds_config['language']."/default.lang.php");
            
            
            
// Build email
            
$Subject = $strMailSubjectDeleted.": ".$campaign["clientname"];
            
            
$Body  = $strMailHeader."\n";
            
$Body .= $strMailClientDeactivated;
            if (
$campaign['clicks'] == 0)             $Body .= ", $strNoMoreClicks";
            if (
$campaign['views'] == 0)             $Body .= ", $strNoMoreViews";
            if (
time() < $campaign["activate_st"])    $Body .= ", $strBeforeActivate";
            if (
time() > $campaign["expire_st"] && $campaign["expire_st"] != 0)
            
$Body .= ", $strAfterExpire";
            
$Body .= ".\n\n";
            
            
            
$res_banners = phpAds_dbQuery("
                SELECT
                    bannerid,
                    URL,
                    description,
                    alt
                FROM
                    "
.$phpAds_config['tbl_banners']."
                WHERE
                    clientid = "
.$campaign['clientid']."
                "
);
            
            if (
phpAds_dbNumRows($res_banners) > 0)
            {
                
$Body .= "-------------------------------------------------------\n";
                
                while(
$row_banners = phpAds_dbFetchArray($res_banners))
                {
                    
$name = "[id".$row_banners['bannerid']."] ";
                    
                    if (
$row_banners['description'] != "")
                        
$name .= $row_banners['description'];
                    elseif (
$row_banners['alt'] != "")
                        
$name .= $row_banners['alt'];
                    else
                        
$name .= $strUntitled;
                    
                    
$Body .= $strBanner."  ".$name."\n";
                    
$Body .= "linked to: ".$row_banners['URL']."\n";
                    
$Body .= "-------------------------------------------------------\n";
                }
            }
            
            
$Body .= "\n";
            
$Body .= "$strMailNothingLeft\n\n";
            
$Body .= "$strMailFooter";
            
            
$Body  = str_replace ("{clientname}", $client["clientname"], $Body);
            
$Body  = str_replace ("{contact}", $client["contact"], $Body);
            
$Body  = str_replace ("{adminfullname}", $phpAds_config['admin_fullname'], $Body);
            
            
            
// Send email
            
phpAds_sendMail ($client['email'], $client['contact'], $Subject, $Body);
            
            if (
$phpAds_config['userlog_email'])
                
phpAds_userlogAdd (phpAds_actionDeactivationMailed, $campaign['clientid'], $Subject."\n\n".$Body);
        }
    }
}

?>

:: 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.0036 ]--