本文整理汇总了PHP中System_Load函数的典型用法代码示例。如果您正苦于以下问题:PHP System_Load函数的具体用法?PHP System_Load怎么用?PHP System_Load使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了System_Load函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Select
public function Select($ServerID)
{
/******************************************************************************/
$__args_types = array('integer');
#-------------------------------------------------------------------------------
$__args__ = Func_Get_Args();
eval(FUNCTION_INIT);
/******************************************************************************/
$Settings = DB_Select('Servers', '*', array('UNIQ', 'ID' => $ServerID));
#-------------------------------------------------------------------------------
switch (ValueOf($Settings)) {
case 'error':
return ERROR | @Trigger_Error('[HostingServer->Select]: не удалось выбрать сервер');
case 'exception':
return new gException('SERVER_NOT_FOUND', 'Указаный сервер не найден');
case 'array':
#-------------------------------------------------------------------------------
$this->SystemID = $Settings['Params']['SystemID'];
#-------------------------------------------------------------------------------
$this->Settings = $Settings;
#-------------------------------------------------------------------------------
if (Is_Error(System_Load(SPrintF('libs/%s.php', $this->SystemID)))) {
@Trigger_Error('[HostingServer->Select]: не удалось загрузить целевую библиотеку');
}
#-------------------------------------------------------------------------------
return TRUE;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
default:
return ERROR | @Trigger_Error(101);
}
#-------------------------------------------------------------------------------
}
示例2: FindSystem
public function FindSystem($ExtraIPOrderID, $OrderType, $DependOrderID)
{
/****************************************************************************/
$__args_types = array('integer', 'string', 'integer');
$__args__ = Func_Get_Args();
eval(FUNCTION_INIT);
/****************************************************************************/
/* find server */
Debug(SPrintF('[system/classes/ExtraIPServer]: OrderType = %s', $OrderType));
#-------------------------------------------------------------------------------
$Columns = array(SPrintF('(SELECT `ServerID` FROM `OrdersOwners` WHERE `OrdersOwners`.`ID` = `%sOrdersOwners`.`OrderID`) AS `ServerID`', $OrderType), 'Login');
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$OrderServer = DB_Select(SPrintF('%sOrdersOwners', $OrderType), $Columns, array('UNIQ', 'ID' => $DependOrderID));
switch (ValueOf($OrderServer)) {
case 'error':
return ERROR | @Trigger_Error('[Server->Select]: ошибка поиска зависимого заказа');
case 'exception':
return new gException('DEPEND_ORDER_NOT_FOUND', 'Не найден заказ к которому необходимо добавить/удалить IP адрес');
case 'array':
#-------------------------------------------------------------------------------
$SysInfo = DB_Select('Servers', '*', array('UNIQ', 'ID' => $OrderServer['ServerID']));
switch (ValueOf($SysInfo)) {
case 'error':
return ERROR | @Trigger_Error('[Server->Select]: не удалось выбрать сервер');
case 'exception':
return new gException('SERVER_NOT_FOUND', 'Указаный сервер не найден');
case 'array':
/* find server info */
#-------------------------------------------------------------------------
# add User Login on server
$SysInfo['UserLogin'] = $OrderServer['Login'];
Debug(SPrintF('[system/classes/ExtraIPServer]: OrderType = %s', $OrderType));
Debug(SPrintF('[system/classes/ExtraIPServer]: found ICS: %s', $SysInfo['Params']['SystemID']));
$this->SystemID = $SysInfo['Params']['SystemID'];
$this->Settings = $SysInfo;
if (Is_Error(System_Load(SPrintF('libs/%s.php', $this->SystemID)))) {
@Trigger_Error('[Server->Select]: не удалось загрузить целевую библиотеку');
}
// + надо загрузить собсно либу для работы с IP адресами
#-------------------------------------------------------------------------------
return TRUE;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
default:
return ERROR | @Trigger_Error(101);
}
default:
return ERROR | @Trigger_Error(101);
}
}
示例3: Select
public function Select($ServerID)
{
/******************************************************************************/
$__args_types = array('integer');
#-------------------------------------------------------------------------------
$__args__ = Func_Get_Args();
eval(FUNCTION_INIT);
/******************************************************************************/
Debug('[system/classes/DomainServer.class.php]: function Select');
#-------------------------------------------------------------------------------
$Settings = DB_Select('Servers', '*', array('UNIQ', 'ID' => $ServerID));
#-------------------------------------------------------------------------------
switch (ValueOf($Settings)) {
case 'error':
return ERROR | @Trigger_Error('[DomainServer->Select]: не удалось выбрать регистратора');
case 'exception':
return new gException('REGISTRATOR_NOT_FOUND', 'Указаный регистратор не найден');
case 'array':
break;
default:
return ERROR | @Trigger_Error(101);
}
#-------------------------------------------------------------------------------
$this->SystemID = $Settings['Params']['SystemID'];
#-------------------------------------------------------------------------------
$this->Settings = $Settings;
#-------------------------------------------------------------------------------
if (Is_Error(System_Load(SPrintF('libs/%s.php', $this->Settings['Params']['SystemID'])))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
return TRUE;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
}
示例4: eval
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
$Args = isset($Args) ? $Args : Args();
#-------------------------------------------------------------------------------
$id = (int) @$Args['id'];
# elid лицензии
$elid = (string) @$Args['elid'];
# происходящее событие
$module = (string) @$Args['module'];
$IP = (string) @$_SERVER['REMOTE_ADDR'];
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
Debug(SPrintF('[comp/www/API/ISPswSettingURL]: id = "%s"; elid = "%s"; module = "%s"', $id, $elid, $module));
#-------------------------------------------------------------------------------
if (Is_Error(System_Load('libs/XXTEA.php'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if ($id < 1) {
return new gException('ID_NOT_SET', 'Не задан идентификатор лицензии');
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if ($elid != 'install') {
return new gException('IS_NOT_INSTALL', 'Работает только при инсталляции');
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if ($module != 'dns') {
示例5: Args
<?php
#-------------------------------------------------------------------------------
/** @author Великодный В.В. (Joonte Ltd.) */
/******************************************************************************/
/******************************************************************************/
$Args = Args();
#-------------------------------------------------------------------------------
$Commit = (bool) @$Args['Commit'];
$UserID = (int) @$Args['UserID'];
#-------------------------------------------------------------------------------
if (Is_Error(System_Load('libs/HTTP.php'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
Header('Content-type: text/plain; charset=utf-8');
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$__SYSLOG =& $GLOBALS['__SYSLOG'];
#-------------------------------------------------------------------------------
echo SPrintF("%s обновлений\n", $Commit ? 'Применение' : 'Проверка');
#-------------------------------------------------------------------------------
echo "Получение снимка файловой системы\n--\n";
#-------------------------------------------------------------------------------
$Snapshot = array();
#-------------------------------------------------------------------------------
$Folders = array('hosts', 'styles', 'db', 'scripts', 'others', 'patches');
#-------------------------------------------------------------------------------
$HostsIDs = $GLOBALS['HOST_CONF']['HostsIDs'];
#-------------------------------------------------------------------------------
示例6: eval
<?php
#-------------------------------------------------------------------------------
/** @author Великодный В.В. (Joonte Ltd.) */
/******************************************************************************/
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
$Args = Args();
#-------------------------------------------------------------------------------
$TableID = (string) @$Args['TableID'];
$RowID = (int) @$Args['RowID'];
$UserNotice = (string) @$Args['UserNotice'];
#-------------------------------------------------------------------------------
if (Is_Error(System_Load('modules/Authorisation.mod'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Notice = DB_Select(SPrintF('%sOwners', $TableID), array('ID', 'UserNotice', 'UserID'), array('UNIQ', 'ID' => $RowID));
#-------------------------------------------------------------------------------
switch (ValueOf($Notice)) {
case 'error':
return ERROR | @Trigger_Error(500);
case 'exception':
return ERROR | @Trigger_Error(400);
case 'array':
#-------------------------------------------------------------------------------
if ($GLOBALS['__USER']['ID'] != $Notice['UserID']) {
if (!$GLOBALS['__USER']['IsAdmin']) {
示例7: MB_StrLen
}
}
#-------------------------------------------------------------------------------
//Debug(print_r($LimitSchemeID, true));
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$MessageLength = MB_StrLen($Message);
#-------------------------------------------------------------------------------
Debug(SPrintF('[comp/Tasks/SMS]: длинна: %s, сообщение (%s)', $MessageLength, $Message));
Debug(SPrintF('[comp/Tasks/SMS]: SMS шлюз (%s)', $ServerSettings['Params']['Provider']));
#Debug(SPrintF('[comp/Tasks/SMS]: API ключ (%s)', $ServerSettings['Params']['ApiKey']));
Debug(SPrintF('[comp/Tasks/SMS]: Отправитель (%s)', $ServerSettings['Params']['Sender']));
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if (Is_Error(System_Load(SPrintF('classes/%s.class.php', $ServerSettings['Params']['Provider'])))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Regulars = Regulars();
$MobileCountry = 'PriceDefault';
$RegCountrys = array('PriceRu' => $Regulars['SMSPriceRu'], 'PriceUa' => $Regulars['SMSPriceUa'], 'PriceSng' => $Regulars['SMSPriceSng'], 'PriceZone1' => $Regulars['SMSPriceZone1'], 'PriceZone2' => $Regulars['SMSPriceZone2']);
#-------------------------------------------------------------------------------
foreach ($RegCountrys as $RegCountryKey => $RegCountry) {
if (Preg_Match($RegCountry, $Mobile)) {
$MobileCountry = $RegCountryKey;
}
}
Debug(SPrintF('[comp/Tasks/SMS]: Страна определена (%s)', $MobileCountry));
#-------------------------------------------------------------------------------
示例8: array
<?php
#-------------------------------------------------------------------------------
/** @author Alex Keda, for www.host-food.ru */
/******************************************************************************/
/******************************************************************************/
$__args_list = array('Task', 'DNSmanagerOrderID');
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
if (Is_Error(System_Load('classes/DNSmanagerServer.class.php'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Columns = array('ID', 'UserID', 'Login', '(SELECT `ServerID` FROM `OrdersOwners` WHERE `OrdersOwners`.`ID` = `DNSmanagerOrdersOwners`.`OrderID`) AS `ServerID`', '(SELECT `IsReselling` FROM `DNSmanagerSchemes` WHERE `DNSmanagerSchemes`.`ID` = `DNSmanagerOrdersOwners`.`SchemeID`) as `IsReselling`', '(SELECT `Name` FROM `DNSmanagerSchemes` WHERE `DNSmanagerSchemes`.`ID` = `DNSmanagerOrdersOwners`.`SchemeID`) as `SchemeName`');
$DNSmanagerOrder = DB_Select('DNSmanagerOrdersOwners', $Columns, array('UNIQ', 'ID' => $DNSmanagerOrderID));
#-------------------------------------------------------------------------------
switch (ValueOf($DNSmanagerOrder)) {
case 'error':
return ERROR | @Trigger_Error(500);
case 'exception':
return ERROR | @Trigger_Error(400);
case 'array':
#-------------------------------------------------------------------------------
$ClassDNSmanagerServer = new DNSmanagerServer();
#-------------------------------------------------------------------------------
$IsSelected = $ClassDNSmanagerServer->Select((int) $DNSmanagerOrder['ServerID']);
#-------------------------------------------------------------------------------
switch (ValueOf($IsSelected)) {
case 'error':
示例9: Load
<?php
#-------------------------------------------------------------------------------
/** @author Лапшин С.М. (Joonte Ltd.) */
#-------------------------------------------------------------------------------
if (Is_Error(System_Load('libs/Color.php'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
foreach (array('BarPlot', 'LinePlot', 'Pie') as $Class) {
#-----------------------------------------------------------------------------
$IsLoad = Load(SPrintF('%s/others/billing/artichow/%s.class.php', SYSTEM_PATH, $Class));
if (Is_Error($IsLoad)) {
return ERROR | @Trigger_Error(500);
}
}
#-------------------------------------------------------------------------------
/**
* Формирование гистограммы.
*
* Функция формирует, а затем записывает в файл ($File) изображение гистограммы по
* переданным пользователем данным($Lines). Первым элементом массива $Lines подпись к
* легенде для данного столбца гистограммы с ключем 'Name'.
*
* @param string <заголовок гистограммы>
* @param string <полный путь с именем файла-результата>
* @param array <исходные данные>
* @param array <подписи к оси Ox>
* @param array <цвета столбцов>
*/
#-------------------------------------------------------------------------------
示例10: array
<?php
#-------------------------------------------------------------------------------
/** @author Alex Keda, for www.host-food.ru */
/******************************************************************************/
/******************************************************************************/
$__args_list = array('Task');
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
if (Is_Error(System_Load('libs/BillManager.php', 'libs/HTTP.php', 'libs/Server.php'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
# get config values
$Config = Config();
#-------------------------------------------------------------------------------
if (!$Config['Tasks']['Types']['GC']['ISPswCheckLicensesSettings']) {
return TRUE;
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Settings = SelectServerSettingsByService(51000);
#-------------------------------------------------------------------------------
if (!Is_Array($Settings)) {
#-------------------------------------------------------------------------------
Debug(SPrintF('[comp/Tasks/ISPswCheckLicenses]: no configured servers for ISPsw service'));
#-------------------------------------------------------------------------------
return TRUE;
#-------------------------------------------------------------------------------
示例11: eval
<?php
#-------------------------------------------------------------------------------
/** @author Alex Keda, for www.host-food.ru */
/******************************************************************************/
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
if (Is_Error(System_Load('classes/HostingServer.class.php'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Config = Config();
$Settings = $Config['Tasks']['Types']['HostingCPUUsage'];
#-------------------------------------------------------------------------------
# достаём время выполнения
$ExecuteTime = Comp_Load('Formats/Task/ExecuteTime', array('ExecuteTime' => $Settings['ExecuteTime'], 'ExecuteDays' => @$Settings['ExecuteDays'], 'DefaultTime' => MkTime(10, 15, 0, Date('n'), Date('j') + 1, Date('Y'))));
if (Is_Error($ExecuteTime)) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
# если неактивна, то через день запуск
if (!$Settings['IsActive']) {
return $ExecuteTime;
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Servers = DB_Select('Servers', array('ID', 'Address', 'IsActive'), array('Where' => '(SELECT `ServiceID` FROM `ServersGroups` WHERE `Servers`.`ServersGroupID` = `ServersGroups`.`ID`) = 10000', 'SortOn' => 'Address'));
#-------------------------------------------------------------------------------
示例12: array
<?php
#-------------------------------------------------------------------------------
/** @author Великодный В.В. (Joonte Ltd.) */
/******************************************************************************/
/******************************************************************************/
$__args_list = array('InvoiceID');
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
if (Is_Error(System_Load('classes/DOM.class.php', 'libs/Wizard.php', 'libs/Upload.php'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Invoice = DB_Select('Invoices', array('ID', 'CreateDate', 'ContractID', 'PaymentSystemID', 'Summ'), array('UNIQ', 'ID' => $InvoiceID));
#-------------------------------------------------------------------------------
switch (ValueOf($Invoice)) {
case 'error':
return ERROR | @Trigger_Error(500);
case 'exception':
return ERROR | @Trigger_Error(400);
case 'array':
#---------------------------------------------------------------------------
$InvoiceID = $Invoice['ID'];
#---------------------------------------------------------------------------
$Contract = DB_Select('Contracts', array('ID', 'CreateDate', 'ProfileID'), array('UNIQ', 'ID' => $Invoice['ContractID']));
#---------------------------------------------------------------------------
switch (ValueOf($Contract)) {
case 'error':
return ERROR | @Trigger_Error(500);
示例13: array
/** @author Великодный В.В. (Joonte Ltd.) */
/******************************************************************************/
/******************************************************************************/
$__args_list = array('LinkID', 'Patterns', 'PatternOutID');
/******************************************************************************/
/******************************************************************************/
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
$Links =& Links();
# Коллекция ссылок
$Template =& $Links[$LinkID];
/******************************************************************************/
/******************************************************************************/
if (Is_Error(System_Load('classes/Session.class.php'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Table = $Options = array();
#-------------------------------------------------------------------------------
foreach (Array_Keys($Patterns) as $PatternID) {
$Options[$PatternID] = $Patterns[$PatternID]['Name'];
}
#-------------------------------------------------------------------------------
$Session =& $Template['Session'];
#-------------------------------------------------------------------------------
if (isset($Session['PatternOutID'])) {
$PatternOutID = $Session['PatternOutID'];
}
#-------------------------------------------------------------------------------
示例14: array
<?php
#-------------------------------------------------------------------------------
/** @author Великодный В.В. (Joonte Ltd.) */
/******************************************************************************/
/******************************************************************************/
$__args_list = array('ClauseID', 'Prefix', 'Width', 'Groups');
/******************************************************************************/
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
if (Is_Error(System_Load('libs/Image.php'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
if (!Comp_IsLoaded('Clauses/ImagesGallery')) {
#-----------------------------------------------------------------------------
$Links =& Links();
# Коллекция ссылок
$DOM =& $Links['DOM'];
#-----------------------------------------------------------------------------
$Script = new Tag('SCRIPT', array('type' => 'text/javascript', 'src' => 'SRC:{Js/ClauseImage.js}'));
#-----------------------------------------------------------------------------
$DOM->AddChild('Head', $Script);
}
#-------------------------------------------------------------------------------
$Images = DB_Select('ClausesFiles', array('ID', 'Comment', 'FileData'), array('Where' => SPrintF("`ClauseID` = %u AND `FileName` LIKE '%s%%'", $ClauseID, DB_Escape($Prefix))));
#-------------------------------------------------------------------------------
switch (ValueOf($Images)) {
case 'error':
示例15: array
<?php
#-------------------------------------------------------------------------------
/** @author Alex Keda, for www.host-food.ru */
/******************************************************************************/
/******************************************************************************/
$__args_list = array('Task', 'ISPswOrderID');
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
if (Is_Error(System_Load('libs/BillManager.php'))) {
return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Columns = array('*', '(SELECT `ProfileID` FROM `Contracts` WHERE `Contracts`.`ID` = `ISPswOrdersOwners`.`ContractID`) as `ProfileID`', '(SELECT `elid` FROM `ISPswLicenses` WHERE `ISPswOrdersOwners`.`LicenseID`=`ISPswLicenses`.`ID`) AS `elid`', '(SELECT `ServerID` FROM `OrdersOwners` WHERE `OrdersOwners`.`ID` = `ISPswOrdersOwners`.`OrderID`) AS `ServerID`');
$ISPswOrder = DB_Select('ISPswOrdersOwners', $Columns, array('UNIQ', 'ID' => $ISPswOrderID));
#-------------------------------------------------------------------------------
switch (ValueOf($ISPswOrder)) {
case 'error':
return ERROR | @Trigger_Error(500);
case 'exception':
return ERROR | @Trigger_Error(400);
case 'array':
#-------------------------------------------------------------------------------
$Server = DB_Select('Servers', '*', array('UNIQ', 'ID' => $ISPswOrder['ServerID']));
#-------------------------------------------------------------------------------
switch (ValueOf($Server)) {
case 'error':
return ERROR | @Trigger_Error(500);