$host = $this->hosts[$hostId];
if ($host->isRelay())
{
<?php
private $Additional = array();
public function onPrismError($eNo, $eStr, $eFile, $eLine)
{
if($eStr != 'Invalid CRT parameters detected'){
if(!isset($this->Additional['Error']['Last']))
$this->Additional['Error']['Last'] = time() - 5;
if((time() - $this->Additional['Error']['Last']) >= 5){
$Error = sprintf("^1> ERROR: ^7[%d] %s. %s:%d",$eNo,$eStr,basename($eFile),$eLine);
IS_MTC()->Sound(SND_ERROR)->UCID(255)->Text($Error)->Send(); console($Error);
$this->Additional['Error']['Last'] = time();
}
}
return FALSE;
}
public function onPrismClose()
{
IS_MTC()->Sound(SND_ERROR)->UCID(255)->Text('^1> FATAL ERROR. ^7Restarting...')->Send();
Cruise::sqlSaveAll();
}
public function __construct()
{
#PHP Stuff
set_error_handler(array($this, 'onPrismError'));
register_shutdown_function(array($this, 'onPrismClose'));
?>
<?php
private $stuff = NULL;
public function onPrismError($eNo, $eStr, $eFile, $eLine)
{
if($eStr != 'Invalid CRT parameters detected'){
if($this->stuff === NULL)
$this->stuff = time() - 10;
if((time() - $this->stuff) >= 10){
$Error = sprintf("^1ERROR: ^7[%d] %s. %s:%d",$eNo,$eStr,basename($eFile),$eLine);
IS_MTC()->Sound(SND_ERROR)->UCID(255)->Text($Error)->Send();
$this->stuff = time();
console($Error);
}
}
return FALSE;
}
?>
<?php
if (!empty($BTN->ClickID)) { return PLUGIN_CONTINUE; }
?>
<?php
self::$ids[$hostId][$BTN->UCID]
?>
<?php
public static function registerButton(Button $BTN, $hostId = null)
{
if (!empty($BTN->ClickID)) { return PLUGIN_CONTINUE; }
if ($hostId === NULL)
{
global $PRISM;
$hostId = $PRISM->hosts->curHostID;
}
// next id: may be 0 - 239
$id = 0;
if (isset(self::$ids[$hostId][$BTN->UCID]))
{
$id = self::$ids[$hostId][$BTN->UCID];
}
$BTN->ReqI = $id + 1; // may not be zero -_-
$BTN->ClickID = $id;
self::$ids[$hostId][$BTN->UCID] = $id + 1;
}
?>
PHP NOTICE:
Indirect modification of overloaded property ClientHandler::$UName has no effect in C:\Users\T3charmy\SpiderOak\
PRISM\modules\prism_plugins.php on line 256
1 :: canUserAccessCommand in C:\Users\T3charmy\SpiderOak\PRISM\plugins\admin.php:218
2 :: cmdHelp in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_plugins.php:213
3 :: handleCmd in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_plugins.php:156
4 :: dispatchPacket in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_hosts.php:440
5 :: handlePacket in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_hosts.php:323
6 :: checkTraffic in C:\Users\T3charmy\SpiderOak\PRISM\PHPInSimMod.php:225