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

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/local/webmail2/plugins/auto_cc/   drwxr-xr-x
Free 318.34 GB of 458.09 GB (69.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     functions.php (2.83 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
 


// include compatibility plugin
//
if (defined('SM_PATH'))
   include_once(
SM_PATH 'plugins/compatibility/functions.php');
else if (
file_exists('../plugins/compatibility/functions.php'))
   include_once(
'../plugins/compatibility/functions.php');
else if (
file_exists('./plugins/compatibility/functions.php'))
   include_once(
'./plugins/compatibility/functions.php');



function 
auto_cc_add_addresses($a$b)
{

   if (!empty(
$a))
      
$a .= ', ' $b;
   else
      
$a $b;

   
$a str_replace('&nbsp;'' '$a);
   
$addressArr = array();
   
$a parseAddress($a);
   foreach (
$a as $arr
      foreach (
$arr as $addr)
         if (!empty(
$addr))
            
$addressArr[$addr] = $addr;  // makes sure no duplicates by using address as key too
   
$addresses implode(', '$addressArr);

   return 
$addresses;

}


function 
auto_cc_compose_form_do()
{

   global 
$username$data_dir$send_to_cc$send_to_bcc;

   
$auto_cc_bcc_addr getPref($data_dir$username'auto_cc_bcc_addr');
   
$auto_cc_cc_addr getPref($data_dir$username'auto_cc_cc_addr');

   if (isset(
$auto_cc_cc_addr) && !empty($auto_cc_cc_addr))
      
$send_to_cc auto_cc_add_addresses($send_to_cc$auto_cc_cc_addr);

   if (isset(
$auto_cc_bcc_addr) && !empty($auto_cc_bcc_addr))
      
$send_to_bcc auto_cc_add_addresses($send_to_bcc$auto_cc_bcc_addr);

}


function 
auto_cc_personal_inside_do()
{

   global 
$username$data_dir;

   
$auto_cc_bcc_addr getPref($data_dir$username'auto_cc_bcc_addr');
   
$auto_cc_cc_addr getPref($data_dir$username'auto_cc_cc_addr');

   echo 
"<tr><td align=right>\n";
   echo 
_("Additional CC address(es) for all messages:") . "</td>\n";
   echo 
"<td><input type=text name=auto_cc_cc_addr value=\"$auto_cc_cc_addr\" size=50></td></tr>\n";

   echo 
"<tr><td align=right>\n";
   echo 
_("Additional BCC address(es) for all messages:") . "</td>\n";
   echo 
"<td><input type=text name=auto_cc_bcc_addr value=\"$auto_cc_bcc_addr\" size=50></td></tr>\n";

}


function 
auto_cc_personal_save_do()
{

   global 
$username$data_dir$auto_cc_cc_addr$auto_cc_bcc_addr;

   
compatibility_sqextractGlobalVar('auto_cc_cc_addr');
   
compatibility_sqextractGlobalVar('auto_cc_bcc_addr');


   if (isset(
$auto_cc_cc_addr)) 
      
setPref($data_dir$username'auto_cc_cc_addr'$auto_cc_cc_addr);
   else
      
setPref($data_dir$username'auto_cc_cc_addr''');


   if (isset(
$auto_cc_bcc_addr)) 
      
setPref($data_dir$username'auto_cc_bcc_addr'$auto_cc_bcc_addr);
   else
      
setPref($data_dir$username'auto_cc_bcc_addr''');

}


function 
auto_cc_loading_prefs_do()
{

// no longer used
//
//   global $username,$data_dir;
//   global $auto_cc_cc_addr;
//   global $auto_cc_bcc_addr;
//   $auto_cc_bcc_addr = getPref($data_dir, $username, 'auto_cc_bcc_addr');
//   $auto_cc_cc_addr = getPref($data_dir, $username, 'auto_cc_cc_addr');

}


?>

:: 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 #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0276 ]--