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

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\xampp\xampp\htdocs\jaime\Xcode\SPLIB\ExampleApps\   drwxrwxrwx
Free 4.97 GB of 239.26 GB (2.08%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Articles.php (3.1 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* @package SPLIB
* @version $Id: Articles.php,v 1.1 2003/12/12 08:06:06 kevin Exp $
*/
/**
* Include the Article class
*/
require_once('ExampleApps/Article.php');
/**
* Articles class<br />
* Fetches data for articles from MySQL
* @access public
* @package SPLIB
*/
class Articles {
    
/**
    * Instance of MySQL class
    * @access private
    * @var object
    */
    
var $db;

    
/**
    * Array of article data
    * @access private
    * @var array
    */
    
var $articles;

    
/**
    * Articles constructor
    * @param object instance of MySQL class
    * @access public
    */
    
function Articles(& $db) {
        
$this->db=& $db;
    }

    
/**
    * Fetches a list of articles into the local array
    * @param int (optional) number of rows to fetch
    * @param int (optional) row to start from
    * @return boolean
    * @access public
    */
    
function getArticles ($numRows=false,$startRow=false) {
        
$sql="SELECT
                article_id, title, intro, body, author, published, public
              FROM
                articles
              ORDER BY
                published
              DESC"
;

        if ( 
$numRows && $startRow ) {
            
$sql.=
             
" LIMIT
                
$startRow$numRows";
        } else if ( 
$numRows ) {
            
$sql.=
             
" LIMIT
                
$numRows";
        }

        
$result=$this->db->query($sql);

        if ( 
$result->isError() ) {
            
trigger_error('Articles::fetchArticles: '.
                          
'Unable to fetch articles');
            return 
false;
        }

        while ( 
$row $result->fetch() ) {
            
$this->articles[]=$row;
        }

        return 
true;
    }

    
/**
    * Fetches a single article into the local array
    * @param int article_id
    * @return boolean
    * @access public
    */
    
function getArticle($articleID) {
        if ( !
is_numeric($articleID) ){
            
trigger_error(
                
'Articles::fetchArticle: Numeric value for'.
                
'$articleID required');
        }

        
$articleID=addslashes($articleID);

        
$sql="SELECT
                article_id, title, intro, body, author, published, public
              FROM
                articles
              WHERE
                article_id = '"
.$articleID."'";
        
$result=$this->db->query($sql);

        if ( 
$result->isError() ) {
            
trigger_error('Articles::fetchArticle: '.
                          
'Unable to fetch article');
            return 
false;
        }

        
$this->articles[]=$result->fetch();
        return 
true;
    }

    
/**
    * Returns the current article from the internal array
    * and moves the internal array point forward
    * @return object instance of Article
    * @access public
    */
    
function fetch () {
        
$article=each $this->articles );
        if ( 
$article ) {
            return new 
Article($article['value']);
        } else {
            
reset $this->articles );
            return 
false;
        }
    }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]--