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


PHP Info函数代码示例

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


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

示例1: __construct

 public function __construct($content = NULL)
 {
     if ($content != NULL) {
         $this->data = $content;
     }
     Info(get_class() . ' Initialized');
 }
开发者ID:adamos42,项目名称:ionize,代码行数:7,代码来源:Article.php

示例2: __construct

 /**
  * Konstruktor metódus
  * 
  * Beolvassa a php://input -ot és feldolgozza az esetlegesen érkező hibákat
  * 
  * @since: 2016.05.04
  */
 public function __construct($inputRaw = NULL)
 {
     if ($inputRaw != NULL) {
         $this->parse($inputRaw);
     }
     Info($inputRaw, get_class($this) . ' Initialized with');
 }
开发者ID:adamos42,项目名称:ionize,代码行数:14,代码来源:Request.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->library(['api/json_rpc/Request' => NULL, 'api/json_rpc/Response' => NULL]);
     $inputRaw = file_get_contents('php://input');
     $this->request = new Request($inputRaw);
     $this->response = new Response($this->request, $this->errors);
     Info(get_class($this) . ' Initialized');
 }
开发者ID:adamos42,项目名称:ionize,代码行数:9,代码来源:Provider.php

示例4: userLogout

function userLogout()
{
    global $user;
    $username = $user['Username'];
    Info("User \"{$username}\" logged out");
    unset($_SESSION['user']);
    unset($user);
    session_destroy();
}
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:9,代码来源:functions.php

示例5: __construct

 public function __construct($source = NULL, $parent = NULL)
 {
     if ($parent != NULL) {
         $this->parent = $parent;
     }
     if ($source != NULL) {
         $this->parse($source);
     }
     Info(get_class() . '#' . $this->name . ' Initialized');
 }
开发者ID:adamos42,项目名称:ionize,代码行数:10,代码来源:Tag.php

示例6: __construct

 public function __construct($attributes = NULL, $parent = NULL)
 {
     $ionize = \Ionize::getInstance();
     Debug($ionize, '$ionize');
     if (count($ionize->contents) > 0) {
         $this->output = TRUE;
     }
     foreach ($ionize->contents as $content) {
         $this->addItem(new Article($content));
     }
     Info(get_class() . ' Initialized');
 }
开发者ID:adamos42,项目名称:ionize,代码行数:12,代码来源:Articles.php

示例7: __construct

 /**
  * Konstruktor metódus
  * 
  * @since: 2016.05.04
  */
 public function __construct(Request $request = NULL, array $customErrors = [])
 {
     // Megnézem van-e átadva paraméter
     if ($request != NULL) {
         // Elmentem a kérés objektumot
         $this->request =& $request;
         // Ha voltak a kérésben hibák
         if (count($this->request->errors) > 0) {
             $this->errors = $this->request->errors;
             $this->id = NULL;
         } else {
             $this->id = $this->request->id;
         }
         // Saving the Custom Errors from the API
         $this->customErrors = $customErrors;
         Info($request, get_class($this) . ' Initialized width');
     }
 }
开发者ID:adamos42,项目名称:ionize,代码行数:23,代码来源:Response.php

示例8: __construct

 /**
  * Partial constructor
  *
  * @param null|array $arguments
  */
 public function __construct($arguments = NULL)
 {
     if ($arguments != NULL) {
         foreach ($arguments as $index => $argument) {
             if (is_numeric($index)) {
                 $args = json_decode($argument);
                 foreach ($args as $name => $value) {
                     if (method_exists($this, $name)) {
                         $this->output = $this->{$name}($value);
                     }
                 }
             } else {
                 if (method_exists($this, $index)) {
                     $this->output = $this->{$index}($argument);
                 }
             }
         }
         Info($arguments, get_class() . ' Initialized with Arguments');
     } else {
         Info(get_class() . ' Initialized');
     }
 }
开发者ID:adamos42,项目名称:ionize,代码行数:27,代码来源:Partial.php

示例9: Sql_query

$countresult = Sql_query($countquery);
$total = Sql_Num_Rows($countresult);
if ($total == 0 && sizeof($aListCategories) && $current == '' && empty($_GET['tab'])) {
    ## reload to first category, if none found by default (ie all lists are categorised)
    if (!empty($aListCategories[0])) {
        Redirect('list&tab=' . $aListCategories[0]);
    }
}
print '<p class="total">' . $total . ' ' . $GLOBALS['I18N']->get('Lists') . '</p>';
$limit = '';
$query = ' select *' . ' from ' . $tables['list'] . $subselect . ' order by listorder ' . $limit;
$result = Sql_query($query);
$numlists = Sql_Affected_Rows($result);
$ls = new WebblerListing(s('Lists'));
if ($numlists > 15) {
    Info(s('You seem to have quite a lot of lists, do you want to organise them in categories? ') . ' ' . PageLinkButton('catlists', $GLOBALS['I18N']->get('Great idea!')));
    /* @@TODO add paging when there are loads of lists, because otherwise the page is very slow
      $limit = ' limit 50';
      $query
      = ' select *'
      . ' from ' . $tables['list']
      . $subselect
      . ' order by listorder '.$limit;
      $result = Sql_query($query);
      */
}
while ($row = Sql_fetch_array($result)) {
    ## we only consider confirmed and not blacklisted subscribers members of a list
    ## we assume "confirmed" to be 1 or 0, so that the sum gives the total confirmed
    ## could be incorrect, as 1000 is also "true" but will be ok (saves a few queries)
    ## same with blacklisted, but we're disregarding that for now, because blacklisted subscribers should not
开发者ID:juvenal,项目名称:PHPlist,代码行数:31,代码来源:list.php

示例10: ob_start

ob_start();
print '<div id="autosave"></div>';
### check for draft messages
if (!$GLOBALS["commandline"]) {
    if (!empty($_GET['delete'])) {
        if ($_GET['delete'] == 'alldraft') {
            $req = Sql_Query(sprintf('select id from %s where status = "draft" %s', $GLOBALS['tables']['message'], $ownership));
            while ($row = Sql_Fetch_Row($req)) {
                deleteMessage($row[0]);
            }
            $_SESSION['action_result'] = $GLOBALS['I18N']->get('All draft campaigns deleted');
            print Info($GLOBALS['I18N']->get('campaigns deleted'));
        } else {
            verifyCsrfGetToken();
            deleteMessage(sprintf('%d', $_GET['delete']));
            print Info($GLOBALS['I18N']->get('campaign deleted'));
            $_SESSION['action_result'] = $GLOBALS['I18N']->get('Campaign deleted');
        }
    }
    $req = Sql_Query(sprintf('select id,entered,subject,unix_timestamp(now()) - unix_timestamp(entered) as age from %s where status = "draft" %s order by entered desc', $GLOBALS['tables']['message'], $ownership));
    $numdraft = Sql_Num_Rows($req);
    if ($numdraft > 0 && !isset($_GET['id']) && !isset($_GET['new'])) {
        print '<p>' . PageLinkActionButton('send&amp;new=1', $I18N->get('start a new message'), '', '', s('Start a new campaign')) . '</p>';
        print '<p><h3>' . $I18N->get('Choose an existing draft message to work on') . '</h3></p><br/>';
        $ls = new WebblerListing($I18N->get('Draft messages'));
        $ls->noShader();
        while ($row = Sql_Fetch_Array($req)) {
            $element = '<!--' . $row['id'] . '-->' . $row['subject'];
            $ls->addElement($element, PageUrl2('send&amp;id=' . $row['id']));
            $ls->setClass($element, 'row1');
            #    $ls->addColumn($element,$I18N->get('edit'),PageLink2('send&amp;id='.$row['id'],$I18N->get('edit')));
开发者ID:Gerberus,项目名称:phplist3,代码行数:31,代码来源:send.php

示例11: Warn

    }
    if (ALLOW_ATTACHMENTS && WARN_ABOUT_PHP_SETTINGS && (!is_dir($GLOBALS["attachment_repository"]) || !is_writable($GLOBALS["attachment_repository"]))) {
        if (ini_get("open_basedir")) {
            Warn($GLOBALS['I18N']->get('open_basedir restrictions are in effect, which may be the cause of the next warning'));
        }
        Warn($GLOBALS['I18N']->get('The attachment repository does not exist or is not writable'));
    }
    if (MANUALLY_PROCESS_QUEUE && isSuperUser() && empty($_GET['pi']) && (!isset($_GET['page']) || $_GET['page'] != 'processqueue' && $_GET['page'] != 'messages' && $_GET['page'] != 'upgrade')) {
        ## avoid error on uninitialised DB
        if (Sql_Table_exists($tables['message'])) {
            $queued_count = Sql_Fetch_Row_Query(sprintf('select count(id) from %s where status in ("submitted","inprocess") and embargo < now()', $tables['message']));
            if ($queued_count[0]) {
                $link = PageLinkButton('processqueue', s('Process the queue'));
                $link2 = PageLinkButton('messages&amp;tab=active', s('View the queue'));
                if ($link || $link2) {
                    print Info(sprintf(s('You have %s message(s) waiting to be sent'), $queued_count[0]) . '<br/>' . $link . ' ' . $link2);
                }
            }
        }
    }
}
# always allow access to the about page
if (isset($_GET['page']) && $_GET['page'] == 'about') {
    $page = 'about';
    $include = 'about.php';
}
print $pageinfo->show();
if (!empty($_GET['action']) && $_GET['page'] != 'pageaction') {
    $action = basename($_GET['action']);
    if (is_file(dirname(__FILE__) . '/actions/' . $action . '.php')) {
        $status = '';
开发者ID:bcantwell,项目名称:website,代码行数:31,代码来源:index.php

示例12: elseif

     include 'actions/reconcileusers.php';
 } elseif (isset($_GET['option']) && $_GET['option'] == 'markinvalidunconfirmed') {
     Info($GLOBALS['I18N']->get('Marking subscribers with an invalid email as unconfirmed'));
     flush();
     $req = Sql_Query("select id,email from {$tables['user']}");
     $c = 0;
     while ($row = Sql_Fetch_Array($req)) {
         set_time_limit(60);
         if (!is_email($row['email'])) {
             ++$c;
             Sql_Query("update {$tables['user']} set confirmed = 0 where id = {$row['id']}");
         }
     }
     print $c . ' ' . $GLOBALS['I18N']->get('subscribers updated') . "<br/>\n";
 } elseif (isset($_GET['option']) && $_GET['option'] == 'removestaleentries') {
     Info($GLOBALS['I18N']->get('Cleaning some user tables of invalid entries'));
     # some cleaning up of data:
     $req = Sql_Verbose_Query("select {$tables['usermessage']}.userid\n          from {$tables['usermessage']} left join {$tables['user']} on {$tables['usermessage']}.userid = {$tables['user']}.id\n          where {$tables['user']}.id IS NULL group by {$tables['usermessage']}.userid");
     print Sql_Affected_Rows() . ' ' . $GLOBALS['I18N']->get('entries apply') . '<br/>';
     while ($row = Sql_Fetch_Row($req)) {
         Sql_Query("delete from {$tables['usermessage']} where userid = {$row['0']}");
     }
     $req = Sql_Verbose_Query("select {$tables['user_attribute']}.userid\n          from {$tables['user_attribute']} left join {$tables['user']} on {$tables['user_attribute']}.userid = {$tables['user']}.id\n          where {$tables['user']}.id IS NULL group by {$tables['user_attribute']}.userid");
     print Sql_Affected_Rows() . ' ' . $GLOBALS['I18N']->get('entries apply') . '<br/>';
     while ($row = Sql_Fetch_Row($req)) {
         Sql_Query("delete from {$tables['user_attribute']} where userid = {$row['0']}");
     }
     $req = Sql_Verbose_Query("select {$tables['listuser']}.userid\n          from {$tables['listuser']} left join {$tables['user']} on {$tables['listuser']}.userid = {$tables['user']}.id\n          where {$tables['user']}.id IS NULL group by {$tables['listuser']}.userid");
     print Sql_Affected_Rows() . ' ' . $GLOBALS['I18N']->get('entries apply') . '<br/>';
     while ($row = Sql_Fetch_Row($req)) {
         Sql_Query("delete from {$tables['listuser']} where userid = {$row['0']}");
开发者ID:gillima,项目名称:phplist3,代码行数:31,代码来源:reconcileusers.php

示例13: foreach

    }
}
if (!empty($_POST['category']) && is_array($_POST['category'])) {
    foreach ($_POST['category'] as $key => $val) {
        Sql_Query(sprintf('update %s set category = "%s" %s and id = %d ', $tables['list'], sql_escape($val), $subselect, $key));
    }
    if (isset($_GET['show']) && $_GET['show'] == 'all') {
        $_SESSION['action_result'] = s('Category assignments saved');
        Redirect('list');
    } else {
        Info(s('Categories saved'), true);
    }
}
$req = Sql_Query(sprintf('select * from %s %s', $tables['list'], $subselect));
if (!Sql_Affected_Rows()) {
    Info(s('All lists have already been assigned a category') . '<br/>' . PageLinkButton('list', s('Back')), true);
}
print '<div class="fright">' . PageLinkButton('catlists&show=all', s('Re-edit all lists')) . '</div>';
print '<div class="fright">' . PageLinkButton('configure&id=list_categories&ret=catlists', $I18N->get('Configure Categories')) . '</div>';
$ls = new WebblerListing(s('Categorise lists'));
$aListCategories = listCategories();
if (count($aListCategories)) {
    while ($row = Sql_Fetch_Assoc($req)) {
        $ls->addELement($row['id']);
        $ls->addColumn($row['id'], $GLOBALS['I18N']->get('Name'), stripslashes($row['name']));
        $catselect = '<select name="category[' . $row['id'] . ']">';
        $catselect .= '<option value="">-- ' . s('choose category') . '</option>';
        $catselect .= '<option value="">-- ' . s('none') . '</option>';
        foreach ($aListCategories as $category) {
            $category = trim($category);
            $catselect .= sprintf('<option value="%s" %s>%s</option>', $category, $category == $row['category'] ? 'selected="selected"' : '', $category);
开发者ID:MarcelvC,项目名称:phplist3,代码行数:31,代码来源:catlists.php

示例14: sprintf

        if (is_dir(dirname(__FILE__) . '/lan/' . $iso)) {
            $ls .= sprintf('<option value="%s" %s>%s</option>', $iso, $_SESSION['adminlanguage']['iso'] == $iso ? 'selected' : '', $rec[0]);
            $lancount++;
        }
    }
    $ls .= '</select></form></div>';
    if ($lancount > 1) {
        print $ls;
    }
}
if ($page != "login") {
    if (ereg("dev", VERSION) && !TEST) {
        if ($GLOBALS["developer_email"]) {
            print Info("Running CVS version. All emails will be sent to " . $GLOBALS["developer_email"]);
        } else {
            print Info("Running CVS version, but developer email is not set");
        }
    }
    #if (!ini_get("register_globals") && WARN_ABOUT_PHP_SETTINGS)
    #  Error("Register Globals in your php.ini needs to be <b>on</b> instead of ".ini_get("register_globals") );
    if (ini_get("safe_mode") && WARN_ABOUT_PHP_SETTINGS) {
        Warn($GLOBALS['I18N']->get('safemodewarning'));
    }
    if (!ini_get("magic_quotes_gpc") && WARN_ABOUT_PHP_SETTINGS) {
        Warn($GLOBALS['I18N']->get('magicquoteswarning'));
    }
    if (ini_get("magic_quotes_runtime") && WARN_ABOUT_PHP_SETTINGS) {
        Warn($GLOBALS['I18N']->get('magicruntimewarning'));
    }
    if (defined("ENABLE_RSS") && ENABLE_RSS && !function_exists("xml_parse") && WARN_ABOUT_PHP_SETTINGS) {
        Warn($GLOBALS['I18N']->get('noxml'));
开发者ID:radicaldesigns,项目名称:amp,代码行数:31,代码来源:index.php

示例15: PageLinkButton

        print '<p>' . PageLinkButton('configure&id=list_categories', $I18N->get('Configure Categories')) . '</p>';
        print '<br/>';
        return;
    } else {
        saveConfig('list_categories', join(',', $categories));
    }
}
if (!empty($_POST['category']) && is_array($_POST['category'])) {
    foreach ($_POST['category'] as $key => $val) {
        Sql_Query(sprintf('update %s set category = "%s" %s and id = %d ', $tables['list'], sql_escape($val), $subselect, $key));
    }
    print Info($I18N->get('Categories saved'));
}
$req = Sql_Query(sprintf('select * from %s %s', $tables['list'], $subselect));
if (!Sql_Affected_Rows()) {
    print Info(s('All lists have already been assigned a category'), true);
} else {
    print '<div class="fright">' . PageLinkButton('configure&id=list_categories', $I18N->get('Configure Categories')) . '</div>';
}
$ls = new WebblerListing(s('Categorise lists'));
$aListCategories = listCategories();
if (sizeof($aListCategories)) {
    while ($row = Sql_Fetch_Assoc($req)) {
        $ls->addELement($row['id']);
        $ls->addColumn($row['id'], $GLOBALS['I18N']->get('Name'), stripslashes($row['name']));
        $catselect = '<select name="category[' . $row['id'] . ']">';
        $catselect .= '<option value="">-- ' . s('choose category') . '</option>';
        foreach ($aListCategories as $category) {
            $category = trim($category);
            $catselect .= sprintf('<option value="%s" %s>%s</option>', $category, $category == $row['category'] ? 'selected="selected"' : '', $category);
        }
开发者ID:dehvCurtis,项目名称:phplist,代码行数:31,代码来源:catlists.php


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