Chi mi aiuta mi da questo errore: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /membri/kingshackings/forum/admin/sources/base/ipsRegistry.php on line 28
Come risolvo ecco qua
la line 28: private static $instance;
Codice PHP:
<?php
/**
* Invision Power Services
* IP.Board v3.0.3
* ipsRegistry:: Registry file controlls handling of objects needed throughout IPB
* Last Updated: $Date: 2009-09-01 07:56:41 -0400 (Tue, 01 Sep 2009) $
*
* @author $Author: matt $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @package Invision Power Board
* @since Tue. 17th August 2004
* @version $Rev: 5068 $
*
*/
/**
* Base registry class
*/
class ipsRegistry
{
/**
* Holds instance of registry (singleton implementation)
*
* @access private
* @var object
*/
private static $instance;
/**
* Registry initialized yet?
*
* @access private
* @var boolean
*/
private static $initiated = FALSE;
/**
* SEO templates
*
* @access private
* @var array
*/
private static $_seoTemplates = array();
/**
* Incoming URI - used in SEO / fURL stuffs
*
* @access private
* @var string
*/
private static $_uri = '';
/**#@+
* Holds data for app / coreVariables
*
* @access private
* @var array
*/
private static $_coreVariables = array();
private static $_masterCoreVariables = array();
/**#@-*/
/**
* Handles for other singletons
*
* @access private
* @var array
*/
private static $handles = array();
/**
* Handles for other classes
*
* @access private
* @var array
*/
private static $classes = array();
/**
* Word array
*
* @access public
* @var array
*/
static public $words = array();
/**
* URLs
*
* @access public
* @var array
*/
static public $urls = array();
/**
* Our processed URL
*
* @access public
* @var string
*/
static public $processed_url = '';
/**
* Server load
*
* @access public
* @var string
*/
static public $server_load;
/**
* Do not print HTTP headers
*
* @access public
* @var bool
*/
static public $no_print_header = false;
/**#@+
* Query string information
*
* @access public
* @var string
*/
static public $query_string_safe;
static public $query_string_real;
static public $query_string_formatted;
/**#@-*/
/**#@+
* Version information
*
* @access public
* @var string
*/
static public $version = null;
static public $acpversion = null;
static public $vn_full = '';
static public $vn_build_date = '';
static public $vn_build_reason = '';
/**#@-*/
/**#@+
* Version information
*
* @access public
* @var mixed Strings and arrays
*/
static public $applications = array();
static public $modules = array();
static public $modules_by_section = array();
static public $current_application = '';
static public $current_module = '';
static public $current_section = '';
/**#@-*/
/**
* Application class vars
*
* @access public
* @var array
*/
static public $app_class = array();
/**
* Settings
*
* @access public
* @var array
*/
static public $settings = array();
/**
* Input parameters
*
* @access public
* @var array
*/
static public $request = array();
/**
* Template striping
*
* @access public
* @var array
*/
public $templateStriping = array();
/**
* Initialize singleton
*
* @access public
* @return object
*/
static public function instance()
{
if ( ! self::$instance )
{
self::$instance = new self();
}
return self::$instance;
}
/**
* Ok, we need a guaranteed way to perform some clean up
* before __destruct() is called on other classes. For example
* using the DB connection isn't possible if class_db::__destruct() runs
* before ipsRegistry::__destruct. PHP 5 - 5.2.5 ran the __destruct functions
* in the order the classes are created, so we could bank on ipsRegistry::__destruct
* being called first as it's created first. Happy days
* But as of 5.2.5 the order is __reversed__ so that ipsRegistry would be called last
* making it all but useless.
* So, we use a register_shutdown_function instead which is always called before any
* __destruct() destructors. Happy days again. We hope
*
* @access public
* @return void
*/
static public function __myDestruct()
{
foreach( self::$handles as $name => $obj )
{
if ( method_exists( $obj, '__myDestruct' ) )
{
$obj->__myDestruct();
}
}
//-----------------------------------------
// Process any pending emails to go out...
//-----------------------------------------
self::processMailQueue();
}
/**
* Process the mail queue
*
* @access public
* @return void
*/
static public function processMailQueue()
{
//-----------------------------------------
// SET UP
//-----------------------------------------
$doReset = 0;
$cache = self::$handles['caches']->getCache('systemvars');
self::$settings['mail_queue_per_blob'] = isset(self::$settings['mail_queue_per_blob']) ? self::$settings['mail_queue_per_blob'] : 10;
if ( ! isset( $cache['mail_queue'] ) OR $cache['mail_queue'] < 0 )
{
$mailQueue = self::DB()->buildAndFetch( array( 'select' => 'COUNT(*) as total', 'from' => 'mail_queue' ) );
$mailQueueCount = intval($mailQueue['total']);
$cache['mail_queue'] = $mailQueueCount;
$doReset = 1;
}
else
{
$mailQueueCount = intval($cache['mail_queue']);
}
$sent_ids = array();
if ( $mailQueueCount > 0 )
{
//-----------------------------------------
// Get the mail stuck in the queue
//-----------------------------------------
self::DB()->build( array( 'select' => '*', 'from' => 'mail_queue', 'order' => 'mail_id', 'limit' => array( 0, self::$settings['mail_queue_per_blob'] ) ) );
self::DB()->execute();
while ( $r = self::DB()->fetch() )
{
$data[] = $r;
$sent_ids[] = $r['mail_id'];
}
if ( count($sent_ids) )
{
//-----------------------------------------
// Delete sent mails and update count
//-----------------------------------------
$mailQueueCount = $mailQueueCount - count($sent_ids);
self::DB()->delete( 'mail_queue', 'mail_id IN (' . implode( ",", $sent_ids ) . ')' );
foreach( $data as $mail )
{
if ( $mail['mail_to'] and $mail['mail_subject'] and $mail['mail_content'] )
{
IPSText::getTextClass('email')->to = $mail['mail_to'];
IPSText::getTextClass('email')->from = $mail['mail_from'] ? $mail['mail_from'] : self::$settings['email_out'];
IPSText::getTextClass('email')->subject = $mail['mail_subject'];
IPSText::getTextClass('email')->message = $mail['mail_content'];
if ( $mail['mail_html_on'] )
{
IPSText::getTextClass('email')->html_email = 1;
}
else
{
IPSText::getTextClass('email')->html_email = 0;
}
IPSText::getTextClass('email')->sendMail();
IPSDebug::addLogMessage('Email Sent: ' . $mail['mail_to'], 'bulkemail' );
}
}
}
else
{
//-----------------------------------------
// No mail after all?
//-----------------------------------------
$mailQueueCount = 0;
}
//-----------------------------------------
// Set new mail_queue count
//-----------------------------------------
$cache['mail_queue'] = $mailQueueCount;
}
//-----------------------------------------
// Update cache with remaning email count
//-----------------------------------------
if ( $mailQueueCount > 0 OR $doReset )
{
self::$handles['caches']->setCache( 'systemvars', $cache, array(
ecc ecc
Questo se scrivo nell'url: http://www.kingshackings.altervista.org/forum/admin
Se invece scrivo http://www.kingshackings.altervista....admin/install/
Mi esce
Codice PHP:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /membri/kingshackings/forum/admin/setup/sources/base/ipsRegistry_setup.php on line 25