当前位置: 首页>>代码示例>>PHP>>正文


PHP UniqID函数代码示例

本文整理汇总了PHP中UniqID函数的典型用法代码示例。如果您正苦于以下问题:PHP UniqID函数的具体用法?PHP UniqID怎么用?PHP UniqID使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了UniqID函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Links

#-------------------------------------------------------------------------------
$Links =& Links();
# Коллекция ссылок
$Links['DOM'] =& $DOM;
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Base'))) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$DOM->AddAttribs('MenuLeft', array('args' => 'User/Services'));
#-------------------------------------------------------------------------------
$DOM->AddText('Title', 'Услуги → Лицензии ISPsystem → Мои тарифы');
#-------------------------------------------------------------------------------
$NoBody = new Tag('NOBODY');
#-------------------------------------------------------------------------------
$UniqID = UniqID('ISPswSchemes');
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Services/Schemes', 'ISPswSchemes', $GLOBALS['__USER']['ID'], array('Name'), $UniqID);
if (Is_Error($Comp)) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Tables/Super', 'ISPswSchemes[User]', array('Source' => array('TableID' => $UniqID)));
if (Is_Error($Comp)) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$NoBody->AddChild($Comp);
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Tab', 'User/ISPsw', $NoBody);
if (Is_Error($Comp)) {
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:ISPswSchemes.comp.php

示例2: array

     #-------------------------------------------------------------------------------
     $StatusID = 'Payed';
     #-------------------------------------------------------------------------------
     $Comment = 'Оплачен (выполнена финансовая транзакция или заказ оплачен в электронной платёжной системе)';
     #-------------------------------------------------------------------------------
     break;
     #-------------------------------------------------------------------------------
 #-------------------------------------------------------------------------------
 case 'canceled':
     #-------------------------------------------------------------------------------
     $StatusID = 'Rejected';
     #-------------------------------------------------------------------------------
     $Comment = 'Отменён (выполнена транзакция разблокировки	средств или выполнена операция по возврату платежа после списания средств)';
     #-------------------------------------------------------------------------------
     #----------------------------------TRANSACTION----------------------------------
     if (Is_Error(DB_Transaction($TransactionID = UniqID('Merchant/Uniteller')))) {
         return ERROR | @Trigger_Error(500);
     }
     #-------------------------------------------------------------------------------
     #-------------------------------------------------------------------------------
     # ставим счёт как неоплаченный
     # плохая идея. появляется кнопка про оплату, а оплатить нельзя - юнителлер не даёт
     #$IsUpdate = DB_Update('Invoices',Array('IsPosted'=>FALSE),Array('ID'=>$Invoice['ID']));
     #if(Is_Error($IsUpdate))
     #	return ERROR | @Trigger_Error(500);
     #-------------------------------------------------------------------------------
     # вычитаем сумму счёта из договора, на который счёт.
     $Contract = DB_Select('ContractsOwners', 'Balance', array('UNIQ', 'ID' => $Invoice['ContractID']));
     switch (ValueOf($Contract)) {
         case 'error':
             return ERROR | @Trigger_Error(500);
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:Uniteller.comp.php

示例3: Build

 /**
 * Формирует объект
 *
 * Сформировывает объект класса DOM и подготавливает к выводу в браузер. После
 * вызова этой функции переменная, куда записывался результат выполнения функции
 * выводится с помощью оператора echo.
 *
 * @param boolean <необходимость преобразования в XML строку>
 */
 public function Build($IsToXML = TRUE)
 {
     #-----------------------------------------------------------------------------
     if ($this->TemplateID) {
         #---------------------------------------------------------------------------
         $Trigger = SPrintF('Triggers/DOM/After/%s', $this->TemplateID);
         #---------------------------------------------------------------------------
         if (!Is_Error(System_Element(SPrintF('comp/%s.comp.php', $Trigger)))) {
             #-------------------------------------------------------------------------
             $LinkID = UniqID('DOM-');
             #-------------------------------------------------------------------------
             $Links =& Links();
             # Коллекция ссылок
             $Links[$LinkID] =& $this;
             #-------------------------------------------------------------------------
             if (Is_Error(Comp_Load($Trigger, $LinkID, COMP_ALL_HOSTS))) {
                 return ERROR | @Trigger_Error('[DOM->Build]: ошибка загрузки предобработчика');
             }
             #-------------------------------------------------------------------------
             unset($Links[$LinkID]);
         }
     }
     #-----------------------------------------------------------------------------
     # Номализация документа
     $this->Normalize();
     #-----------------------------------------------------------------------------
     $this->Apply('Sources');
     #-----------------------------------------------------------------------------
     if ($IsToXML) {
         #---------------------------------------------------------------------------
         $Result = $this->Object->ToXMLString();
         if (Is_Error($Result)) {
             return ERROR | Trigger_Error('[DOM->Build]: не удалось преобразовать DOM в строку');
         }
         #---------------------------------------------------------------------------
         return SPrintF("<!-- Joonte Billing System http://www.joonte.com -->\n%s", $Result);
     }
     #-----------------------------------------------------------------------------
     return TRUE;
 }
开发者ID:carriercomm,项目名称:jbs,代码行数:49,代码来源:DOM.php

示例4: DB_Select

 #-------------------------------------------------------------------------
 $Group = DB_Select('Groups', 'ID', array('UNIQ', 'Where' => "`IsDefault` = 'yes'"));
 #-------------------------------------------------------------------------
 switch (ValueOf($Group)) {
     case 'error':
         return ERROR | @Trigger_Error(500);
     case 'exception':
         return ERROR | @Trigger_Error(400);
     case 'array':
         $IUser['GroupID'] = $Group['ID'];
         break;
     default:
         return ERROR | @Trigger_Error(101);
 }
 #-------------------------------------------------------------------------
 if (Is_Error(DB_Transaction($TransactionID = UniqID('Import')))) {
     return ERROR | @Trigger_Error(500);
 }
 #-------------------------------------------------------------------------
 $UserID = DB_Insert('Users', $IUser);
 if (Is_Error($UserID)) {
     return ERROR | @Trigger_Error(500);
 }
 #-------------------------------------------------------------------------
 $Contracts = $User['Contracts'];
 #-------------------------------------------------------------------------
 $Contracts = Is_Array($Contracts) ? $Contracts : array();
 #-------------------------------------------------------------------------
 foreach ($Contracts as $Contract) {
     #-----------------------------------------------------------------------
     $TypeID = $Contract['TypeID'];
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:Import.comp.php

示例5: SPrintF

/******************************************************************************/
/******************************************************************************/
$Where = SPrintF("`StatusID` = 'Waiting' AND `StatusDate` < UNIX_TIMESTAMP( ) - %d *86400", $Params['Invoices']['DaysBeforeDeleted']);
#-------------------------------------------------------------------------------
$Invoices = DB_Select('InvoicesOwners', array('ID', 'UserID'), array('SortOn' => 'CreateDate', 'IsDesc' => TRUE, 'Where' => $Where));
switch (ValueOf($Invoices)) {
    case 'error':
        return ERROR | @Trigger_Error(500);
    case 'exception':
        return TRUE;
    case 'array':
        #---------------------------------------------------------------------------
        foreach ($Invoices as $Invoice) {
            Debug(SPrintF("[Tasks/GC/SetDeletedWaitingInvoice]: Отмена счёта #%d.", $Invoice['ID']));
            #----------------------------------TRANSACTION----------------------------
            if (Is_Error(DB_Transaction($TransactionID = UniqID('comp/Tasks/GC/SetDeletedWaitingInvoice')))) {
                return ERROR | @Trigger_Error(500);
            }
            #-------------------------------------------------------------------------
            $Comp = Comp_Load('www/API/StatusSet', array('ModeID' => 'Invoices', 'StatusID' => 'Rejected', 'RowsIDs' => $Invoice['ID'], 'Comment' => SPrintF('Автоматическая отмена счёта, неоплачен более %d дней', $Params['Invoices']['DaysBeforeDeleted'])));
            #-------------------------------------------------------------------------
            switch (ValueOf($Comp)) {
                case 'array':
                    $Event = array('UserID' => $Invoice['UserID'], 'PriorityID' => 'Billing', 'Text' => SPrintF('Автоматическая отмена счёта #%d, неоплачен более %d дней', $Invoice['ID'], $Params['Invoices']['DaysBeforeDeleted']));
                    $Event = Comp_Load('Events/EventInsert', $Event);
                    if (!$Event) {
                        return ERROR | @Trigger_Error(500);
                    }
                    break;
                default:
                    return ERROR | @Trigger_Error(500);
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:SetDeletedWaitingInvoice.comp.php

示例6: DB_Select

    $UserID = 1;
}
#-------------------------------------------------------------------------------
$User = DB_Select('Users', array('ID', 'GroupID', 'Email', 'Name'), array('UNIQ', 'ID' => $UserID));
#-------------------------------------------------------------------------------
switch (ValueOf($User)) {
    case 'error':
        return ERROR | @Trigger_Error(500);
    case 'exception':
        return ERROR | @Trigger_Error(400);
    case 'array':
        #---------------------------------------------------------------------------
        $NoBody = new Tag('NOBODY');
        #---------------------------------------------------------------------------
        if (Is_Null($UniqID)) {
            $UniqID = UniqID('ID');
        }
        #---------------------------------------------------------------------------
        $Comp = Comp_Load('Form/Input', array('name' => $UniqID, 'onfocus' => "value='';", 'onclick' => SPrintF("AutoComplite(this,GetPosition(this),'/Administrator/AutoComplite/UserID',function(Text,Value){form.%s.value = Text;form.%s.value = Value;});", $UniqID, $Name), 'type' => 'text', 'value' => SPrintF('%s (%s)', $User['Email'], $User['Name']), 'prompt' => $Prompt ? $Prompt : 'Для поиска пользователя введите первые буквы его имени или email адреса', 'style' => 'width:100%'));
        if (Is_Error($Comp)) {
            return ERROR | @Trigger_Error(500);
        }
        #---------------------------------------------------------------------------
        if ($IsDisabled) {
            $Comp->AddAttribs(array('disabled' => TRUE));
        }
        #---------------------------------------------------------------------------
        if ($User['GroupID'] != 4000000) {
            $Comp->AddAttribs(array('value' => SPrintF('%s (%s)', $User['Email'], $User['Name'])));
        }
        #---------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:Select.comp.php

示例7: gException

$Theme = (string) @$Args['Theme'];
$Message = (string) @$Args['Message'];
#-------------------------------------------------------------------------------
if (Is_Error(System_Load('modules/Authorisation.mod', 'libs/Upload.php'))) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
if (!$Theme) {
    return new gException('THEME_IS_EMPTY', 'Введите тему обсуждения');
}
#-------------------------------------------------------------------------------
if (!$Message) {
    return new gException('MESSAGE_IS_EMPTY', 'Введите сообщение');
}
#-------------------------------------------------------------------------------
if (Is_Error(DB_Transaction($TransactionID = UniqID('EdeskEdit')))) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$__USER = $GLOBALS['__USER'];
#-------------------------------------------------------------------------------
$IEdesk = array('UserID' => $__USER['ID'], 'TargetGroupID' => 1, 'TargetUserID' => 1, 'PriorityID' => 'Low', 'Theme' => $Theme, 'UpdateDate' => Time());
#-------------------------------------------------------------------------------
$EdeskID = DB_Insert('Edesks', $IEdesk);
if (Is_Error($EdeskID)) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Comp = Comp_Load('www/API/StatusSet', array('ModeID' => 'Edesks', 'StatusID' => 'Opened', 'RowsIDs' => $EdeskID));
#-------------------------------------------------------------------------------
switch (ValueOf($Comp)) {
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:EdeskEdit.comp.php

示例8: eval

eval(COMP_INIT);
#******************************************************************************#
#******************************************************************************#
if (!Count($Options)) {
    return ERROR | @Trigger_Error('[comp/Form/Select]: параметр вариантов оказался пустым');
}
#-------------------------------------------------------------------------------
$Select = new Tag('SELECT');
#-------------------------------------------------------------------------------
if (isset($Attribs['prompt'])) {
    #-----------------------------------------------------------------------------
    $Prompt = $Attribs['prompt'];
    #-----------------------------------------------------------------------------
    unset($Attribs['prompt']);
    #-----------------------------------------------------------------------------
    $LinkID = UniqID('Select');
    #-----------------------------------------------------------------------------
    $Links =& Links();
    #-----------------------------------------------------------------------------
    $Links[$LinkID] =& $Select;
    #-----------------------------------------------------------------------------
    $Comp = Comp_Load('Form/Prompt', $LinkID, $Prompt);
    if (Is_Error($Comp)) {
        return ERROR | @Trigger_Error(500);
    }
    #-----------------------------------------------------------------------------
    unset($Links[$LinkID]);
}
#-------------------------------------------------------------------------------
$Select->AddAttribs($Attribs);
#-------------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:Select.comp.php

示例9: DB_Select

# помечаем в локальной базе как свободные те которые уже больше 30 дней свободны (или 31?)
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# обновляем IP адреса заказов лицензий, у которых есть сслыка на elid
$ISPswOrders = DB_Select('ISPswOrdersOwners', array('ID', 'OrderID', 'IP', 'LicenseID'), array('Where' => '`StatusID` = "Active"'));
#-------------------------------------------------------------------------------
switch (ValueOf($ISPswOrders)) {
    case 'error':
        return ERROR | @Trigger_Error(500);
    case 'exception':
        # No more...
        break;
    case 'array':
        #-------------------------------------------------------------------------------
        #----------------------------------TRANSACTION----------------------------------
        if (Is_Error(DB_Transaction($TransactionID = UniqID('comp/Tasks/GC/ISPswCheckLicenses')))) {
            return ERROR | @Trigger_Error(500);
        }
        #-------------------------------------------------------------------------------
        #-------------------------------------------------------------------------------
        foreach ($ISPswOrders as $ISPswOrder) {
            #-------------------------------------------------------------------------------
            if ($ISPswOrder['LicenseID']) {
                #-------------------------------------------------------------------------------
                #-------------------------------------------------------------------------------
                # выбираем данные лицензии на которую ссылается заказ
                $License = DB_Select('ISPswLicensesOwners', array('ID', 'IP', 'StatusID'), array('UNIQ', 'ID' => $ISPswOrder['LicenseID']));
                #-------------------------------------------------------------------------------
                switch (ValueOf($License)) {
                    case 'error':
                        return ERROR | @Trigger_Error(500);
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:ISPswCheckLicenses.comp.php

示例10: gException

if (Is_Error($Count)) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
if ($Count) {
    return new gException('PROMOCODE_ALREADY_EXTINGUISHED', 'Промокод уже был использован');
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$ICode = array('PromoCodeID' => $PromoCode['ID'], 'UserID' => $GLOBALS['__USER']['ID'], 'CreateDate' => Time());
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$IBonus = array('UserID' => $GLOBALS['__USER']['ID'], 'ServiceID' => $PromoCode['ServiceID'], 'SchemeID' => $PromoCode['SchemeID'], 'SchemesGroupID' => $PromoCode['SchemesGroupID'], 'DaysReserved' => $PromoCode['DaysDiscont'], 'Discont' => $PromoCode['Discont'], 'Comment' => SPrintF('Активация промокода "%s"', $Code));
#-------------------------------------------------------------------------------
#-------------------------------TRANSACTION-------------------------------------
if (Is_Error(DB_Transaction($TransactionID = UniqID('PromoCodesExtinguished')))) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# фтыкаем в таблицу погашеных промокодов
$IsInsert = DB_Insert('PromoCodesExtinguished', $ICode);
if (Is_Error($IsInsert)) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# втыкаем бонусы в таблицу бонусов
$IsInsert = DB_Insert('Bonuses', $IBonus);
if (Is_Error($IsInsert)) {
    return ERROR | @Trigger_Error(500);
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:PromoCodesActivate.comp.php

示例11: gException

}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if (!$Source) {
    return new gException('NO_SOURCE', 'Не указана исходная платёжная система');
}
#-------------------------------------------------------------------------------
if (!$Destination) {
    return new gException('NO_DESTINATION', 'Не указана система оплаты');
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$UCollation = array('IsActive' => $IsActive, 'Source' => $Source, 'Destination' => $Destination, 'Image' => $Image, 'Prompt' => $Prompt, 'Description' => $Description, 'AdminNotice' => $AdminNotice, 'SortID' => $SortID);
#-------------------------------------------------------------------------------
#-----------------------------TRANSACTION---------------------------------------
if (Is_Error(DB_Transaction($TransactionID = UniqID('CollationEdit')))) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Answer = array('Status' => 'Ok');
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if ($CollationID) {
    #-------------------------------------------------------------------------------
    $IsUpdate = DB_Update('PaymentSystemsCollation', $UCollation, array('ID' => $CollationID));
    if (Is_Error($IsUpdate)) {
        return ERROR | @Trigger_Error(500);
    }
    #-------------------------------------------------------------------------------
} else {
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:PaymentSystemsCollationEdit.comp.php

示例12: array

/******************************************************************************/
$__args_list = array('Invoice');
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
if ($Invoice['IsPosted']) {
    #-------------------------------------------------------------------------------
    Debug(SprintF('[comp/Triggers/Statuses/Invoices/Payed]: IsPosted = TRUE'));
    #-------------------------------------------------------------------------------
    return TRUE;
    #-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
#----------------------------------TRANSACTION----------------------------------
if (Is_Error(DB_Transaction($TransactionID = UniqID('comp/Triggers/Statuses/Invoices/Payed')))) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$Number = Comp_Load('Formats/Invoice/Number', $Invoice['ID']);
if (Is_Error($Number)) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
$IsUpdate = Comp_Load('www/Administrator/API/PostingMake', array('ContractID' => $Invoice['ContractID'], 'Summ' => $Invoice['Summ'], 'ServiceID' => 1000, 'Comment' => SPrintF('по счёту №%s', $Number)));
#-------------------------------------------------------------------------------
switch (ValueOf($IsUpdate)) {
    case 'error':
        return ERROR | @Trigger_Error(500);
    case 'exception':
        return ERROR | @Trigger_Error(400);
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:Payed.comp.php

示例13: Report

function Report($Theme, $ReportID = '')
{
    #-------------------------------------------------------------------------------
    if (File_Exists($File = SPrintF('%s/REPORTS', SYSTEM_PATH))) {
        #-------------------------------------------------------------------------------
        if (!$ReportID) {
            $ReportID = UniqID('ID');
        }
        #-------------------------------------------------------------------------------
        $Emails = @File_Get_Contents($File);
        #-------------------------------------------------------------------------------
        if ($Emails) {
            foreach (Explode("\n", $Emails) as $Email) {
                if ($Email) {
                    @Mail(Trim($Email), $ReportID, Implode("\n", $GLOBALS['__SYSLOG']), "MIME-Version: 1.0\r\nContent-type: text/plain; charset=UTF-8\r\n");
                }
            }
        }
        #-------------------------------------------------------------------------------
    }
    #-------------------------------------------------------------------------------
}
开发者ID:carriercomm,项目名称:jbs,代码行数:22,代码来源:Load.php

示例14: Permission_Check

 case 'array':
     #---------------------------------------------------------------------------
     $__USER = $GLOBALS['__USER'];
     #---------------------------------------------------------------------------
     $IsPermission = Permission_Check('ContractRead', (int) $__USER['ID'], (int) $Contract['UserID']);
     #---------------------------------------------------------------------------
     switch (ValueOf($IsPermission)) {
         case 'error':
             return ERROR | @Trigger_Error(500);
         case 'exception':
             return ERROR | @Trigger_Error(400);
         case 'false':
             return ERROR | @Trigger_Error(700);
         case 'true':
             #-----------------------------TRANSACTION-------------------------------
             if (Is_Error(DB_Transaction($TransactionID = UniqID('ContractEnclosureMake')))) {
                 return ERROR | @Trigger_Error(500);
             }
             #-----------------------------------------------------------------------
             $IContractEnclosure = array('ContractID' => $Contract['ID'], 'TypeID' => $TypeID);
             #-----------------------------------------------------------------------
             $ContractEnclosureID = DB_Insert('ContractsEnclosures', $IContractEnclosure);
             if (Is_Error($ContractEnclosureID)) {
                 return ERROR | @Trigger_Error(500);
             }
             #-----------------------------------------------------------------------
             $Comp = Comp_Load('Contracts/Enclosures/Build', $ContractEnclosureID);
             if (Is_Error($Comp)) {
                 return ERROR | @Trigger_Error(500);
             }
             #-----------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:ContractEnclosureMake.comp.php

示例15: foreach

        return ERROR | @Trigger_Error(101);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
foreach ($DomainOrders as $DomainOrder) {
    #-------------------------------------------------------------------------------
    if (!($DomainOrder['StatusID'] == 'ForTransfer' || $DomainOrder['StatusID'] == 'OnTransfer' && In_Array($DomainOrder['Name'], array('ru', 'su', 'рф')))) {
        #-------------------------------------------------------------------------------
        Debug(SPrintF("[Tasks/GC/DeleteDomainForTransfer]: Домен не попал в условие: '%s.%s', статус: '%s'", $DomainOrder['DomainName'], $DomainOrder['Name'], $DomainOrder['StatusID']));
        #-------------------------------------------------------------------------------
    }
    #-------------------------------------------------------------------------------
    #-------------------------------------------------------------------------------
    Debug(SPrintF("[Tasks/GC/DeleteDomainForTransfer]: Удаление домена '%s.%s', статус '%s'", $DomainOrder['DomainName'], $DomainOrder['Name'], $DomainOrder['StatusID']));
    #----------------------------------TRANSACTION----------------------------------
    if (Is_Error(DB_Transaction($TransactionID = UniqID('comp/Tasks/GC/DeleteDomainForTransfer')))) {
        return ERROR | @Trigger_Error(500);
    }
    #-------------------------------------------------------------------------------
    $Comp = Comp_Load('www/API/StatusSet', array('ModeID' => 'DomainOrders', 'StatusID' => 'Deleted', 'RowsIDs' => $DomainOrder['ID'], 'Comment' => SPrintF('Заказ домена не был перенесён к регистратору %s, более 180 дней', $DomainOrder['Params']['Name'])));
    #-------------------------------------------------------------------------------
    switch (ValueOf($Comp)) {
        case 'array':
            #-------------------------------------------------------------------------------
            $Event = array('UserID' => $DomainOrder['UserID'], 'PriorityID' => 'Hosting', 'Text' => SPrintF('Автоматическое удаление домена (%s.%s), находится в статусе "%s" более 180 дней', $DomainOrder['DomainName'], $DomainOrder['Name'], $DomainOrder['StatusID']));
            $Event = Comp_Load('Events/EventInsert', $Event);
            #-------------------------------------------------------------------------------
            if (!$Event) {
                return ERROR | @Trigger_Error(500);
            }
            #-------------------------------------------------------------------------------
开发者ID:carriercomm,项目名称:jbs,代码行数:31,代码来源:DeleteDomainForTransfer.comp.php


注:本文中的UniqID函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。