!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/empty_trash/   drwxr-xr-x
Free 318.39 GB of 458.09 GB (69.5%)
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 (1.99 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
   Empty Trash - A Plugin for SqurrelMail
   Version: 1.4
   Version Date: 12-Mar-2005
   Authors: Derek Battams <derek@battams.ca>
            Paul Lesneiwski <pdontthink@angrynerds.com>

   Please see the README file for further information

*/


// Increment a counter each time a user signs into SM 
function incCounter_do()
{
   global 
$data_dir$username;

   
$logins getPref($data_dir$username'logins');
   
setPref($data_dir$username'logins', ++$logins);
   
setPref($data_dir$username'doEmpty'1);
}

// Delete a user's trash folder.  Use JavaScript to redirect a user to the SM
// empty_trash script, which does the dirty work for us.
function delTrash()
{
   echo 
"<script language=\"javaScript\">\n";
   echo 
"window.location=\"empty_trash.php\"\n";
   echo 
"</script>\n";
}

// Decide if it's time to delete the user's trash folder and if it is then do
// it!  In this version of the plugin, a user's trash folder is deleted under
// any of the following circumstances:
//
function do_delete_do()
{
global 
$data_dir$username;

   include_once(
SM_PATH 'plugins/empty_trash/config.php');

   
$trash_folder getPref($data_dir$username'trash_folder');
   if(
$trash_folder == '' || $trash_folder == 'none')
      return;

   
$now time();
 
   
$lastDel getPref($data_dir$username'lastDel');
   if(
$lastDel == '')
      
$lastDel $now;

   
$sec_in_a_day 60*60*24;
   
$diff $now $lastDel;
   for (
$daysDiff 0$diff >= $sec_in_a_day$diff -= $sec_in_a_day)
      
$daysDiff++; 

   
$doEmpty getPref($data_dir$username'doEmpty');
   
$logins getPref($data_dir$username'logins');

   global 
$loginLimit$dayLimit;
   
$overLoginLimit = ($loginLimit && ($logins $loginLimit) === 0);
   
$overDayLimit = ($dayLimit && $daysDiff $dayLimit);

   if(
$doEmpty && ($overLoginLimit || $overDayLimit))
   {
      
setPref($data_dir$username'doEmpty'0);
      
$lastDel time();
      
setPref($data_dir$username'lastDel'$lastDel);
      
delTrash();
   }
}

?>

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