Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1




|Views: 188|Likes:
Published by k3ry

More info:

Published by: k3ry on Oct 20, 2008
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less





<?php/*** @version $Id: joomla.php 9997 2008-02-07 11:27:04Z eddieajau $* @package Joomla* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php* Joomla! is free software. This version may have been modified pursuant* to the GNU General Public License, and as distributed it includes or* is derivative of works licensed under the GNU General Public License or* other free or open source software licenses.* See COPYRIGHT.php for copyright notices and details.*/// no direct accessdefined( '_VALID_MOS' ) or die( 'Restricted access' );define( '_MOS_MAMBO_INCLUDED', 1 );/*** Page generation time* @package Joomla*/class mosProfiler {/** @var int Start time stamp */var $start=0;/** @var string A prefix for mark messages */var $prefix='';/*** Constructor* @param string A prefix for mark messages*/function mosProfiler( $prefix='' ) {$this->start = $this->getmicrotime();$this->prefix = $prefix;}/*** @return string A format message of the elapsed time*/function mark( $label ) {return sprintf ( "\n<div class=\"profiler\">$this->prefix %.3f$label</div>", $this->getmicrotime() - $this->start );}/*** @return float The current time in milliseconds*/function getmicrotime(){list($usec, $sec) = explode(" ",microtime());return ((float)$usec + (float)$sec);}}if (phpversion() < '4.2.0') {require_once( dirname( __FILE__ ) . '/compat.php41x.php' );}if (phpversion() < '4.3.0') {require_once( dirname( __FILE__ ) . '/compat.php42x.php' );
}if (version_compare( phpversion(), '5.0' ) < 0) {require_once( dirname( __FILE__ ) . '/compat.php50x.php' );}@set_magic_quotes_runtime( 0 );if ( @$mosConfig_error_reporting === 0 || @$mosConfig_error_reporting === '0' ) {error_reporting( 0 );} else if (@$mosConfig_error_reporting > 0) {error_reporting( $mosConfig_error_reporting );}require_once( $mosConfig_absolute_path . '/includes/version.php' );require_once( $mosConfig_absolute_path . '/includes/database.php' );require_once( $mosConfig_absolute_path . '/includes/gacl.class.php' );require_once( $mosConfig_absolute_path . '/includes/gacl_api.class.php' );require_once( $mosConfig_absolute_path . '/includes/phpmailer/class.phpmailer.php');require_once( $mosConfig_absolute_path . '/includes/joomla.xml.php' );require_once( $mosConfig_absolute_path .'/includes/phpInputFilter/class.inputfilter.php' );$database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password,$mosConfig_db, $mosConfig_dbprefix );if ($database->getErrorNum()) {$mosSystemError = $database->getErrorNum();$basePath = dirname( __FILE__ );include $basePath . '/../configuration.php';include $basePath . '/../offline.php';exit();}$database->debug( $mosConfig_debug );$acl = new gacl_api();// platform neurtral url handlingif ( isset( $_SERVER['REQUEST_URI'] ) ) {$request_uri = $_SERVER['REQUEST_URI'];} else {$request_uri = $_SERVER['SCRIPT_NAME'];// Append the query string if it exists and isn't nullif ( isset( $_SERVER['QUERY_STRING'] ) && !empty( $_SERVER['QUERY_STRING'] )) {$request_uri .= '?' . $_SERVER['QUERY_STRING'];}}$_SERVER['REQUEST_URI'] = $request_uri;// current server time$now = date( 'Y-m-d H:i', time() );DEFINE( '_CURRENT_SERVER_TIME', $now );DEFINE( '_CURRENT_SERVER_TIME_FORMAT', '%Y-%m-%d %H:%M:%S' );// Non http/https URL Schemes$url_schemes = 'data:, file:, ftp:, gopher:, imap:, ldap:, mailto:, news:, nntp:,telnet:, javascript:, irc:, mms:';DEFINE( '_URL_SCHEMES', $url_schemes );
// disable strict mode in MySQL 5if (!defined( '_JOS_SET_SQLMODE' )) {/** ensure that functions are declared only once */define( '_JOS_SET_SQLMODE', 1 );// if running mysql 5, set sql-mode to mysql40 - thereby circumventingstrict mode problemsif ( strpos( $database->getVersion(), '5' ) === 0 ) {$query = "SET sql_mode = 'MYSQL40'";$database->setQuery( $query );$database->query();}}/*** @package Joomla* @abstract*/class mosAbstractLog {/** @var array */var $_log= null;/*** Constructor*/function mosAbstractLog() {$this->__constructor();}/*** Generic constructor*/function __constructor() {$this->_log = array();}/*** @param string Log message* @param boolean True to append to last message*/function log( $text, $append=false ) {$n = count( $this->_log );if ($append && $n > 0) {$this->_log[count( $this->_log )-1] .= $text;} else {$this->_log[] = $text;}}/*** @param string The glue for each log item* @return string Returns the log*/function getLog( $glue='<br/>', $truncate=9000, $htmlSafe=false ) {$logs = array();foreach ($this->_log as $log) {if ($htmlSafe) {$log = htmlspecialchars( $log );

Activity (6)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
supriadi liked this
Ashish Pethkar liked this
rajanbpatel liked this
zul021228641 liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->