• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP icms_core_Debug类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: xoopsSmilies

/**
 * @deprecated	This is not used anywhere in the core
 * @todo		Remove after 2.0
 * Displays smilie image buttons used to insert smilie codes to a target textarea in a form
 * $textarea_id is a unique of the target textarea
 */
function xoopsSmilies($textarea_id)
{
    icms_core_Debug::setDeprecated('icms_form_elements_Dhtmltextarea.', sprintf(_CORE_REMOVE_IN_VERSION, '2.0'));
    $smiles =& icms_core_DataFilter::getSmileys();
    if (empty($smileys)) {
        if ($result = icms::$xoopsDB->query("SELECT * FROM " . icms::$xoopsDB->prefix('smiles') . " WHERE display='1'")) {
            while ($smiles = icms::$xoopsDB->fetchArray($result)) {
                //hack smilies move for the smilies !!
                echo "<img src='" . ICMS_UPLOAD_URL . "/" . htmlspecialchars($smiles['smile_url']) . "' border='0' onmouseover='style.cursor=\"hand\"' alt='' onclick='xoopsCodeSmilie(\"" . $textarea_id . "_tarea\", \" " . $smiles['code'] . " \");' />";
                //fin du hack
            }
        }
    } else {
        $count = count($smiles);
        for ($i = 0; $i < $count; $i++) {
            if ($smiles[$i]['display'] == 1) {
                //hack bis
                echo "<img src='" . ICMS_UPLOAD_URL . "/" . icms_core_DataFilter::htmlSpecialChars($smiles['smile_url']) . "' border='0' alt='' onclick='xoopsCodeSmilie(\"" . $textarea_id . "_tarea\", \" " . $smiles[$i]['code'] . " \");' onmouseover='style.cursor=\"hand\"' />";
                //fin du hack
            }
        }
    }
    //hack for more
    echo "&nbsp;[<a href='#moresmiley' onmouseover='style.cursor=\"hand\"' alt='' onclick='openWithSelfMain(\"" . ICMS_URL . "/misc.php?action=showpopups&amp;type=smilies&amp;target=" . $textarea_id . "_tarea\",\"smilies\",300,475);'>" . _MORE . "</a>]";
}
开发者ID:nao-pon,项目名称:impresscms,代码行数:31,代码来源:xoopscodes.php


示例2: icms_core_Versionchecker

 /**
  * Access the only instance of this class
  *
  * @static
  * @staticvar object
  *
  * @return	object
  *
  */
 public static function &getInstance()
 {
     static $instance;
     if (!isset($instance)) {
         $instance = new icms_core_Versionchecker();
     }
     $self->_deprecated = icms_core_Debug::setDeprecated('icms_core_Versionchecker', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
     return $instance;
 }
开发者ID:nao-pon,项目名称:impresscms,代码行数:18,代码来源:icmsversionchecker.php


示例3: XoopsCommentRenderer

 /**
  * Access the only instance of this class
  *
  * @param   object  $tpl        reference to a {@link Smarty} object
  * @param   boolean $use_icons
  * @param   boolean $do_iconcheck
  * @return
  **/
 static function &instance(&$tpl, $use_icons = true, $do_iconcheck = false)
 {
     $class = new XoopsCommentRenderer();
     $class->_deprecated = icms_core_Debug::setDeprecated('icms_data_comment_Renderer', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
     static $instance;
     if (!isset($instance)) {
         $instance = new icms_data_comment_Renderer($tpl, $use_icons, $do_iconcheck);
     }
     return $instance;
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:18,代码来源:commentrenderer.php


示例4: checkForField

 /**
  * Check the StopForumSpam API for a specific field (username, email or IP)
  *
  * @param string $field field to check
  * @param string $value value to validate
  * @return true if spammer was found with passed info
  */
 public function checkForField($field, $value)
 {
     $spam = false;
     return $spam;
     // MODIFIED BY FREEFORM SOLUTIONS for compatibility with offline installs.  SUGGESTED BY SKENOW HERE: http://www.freeformsolutions.ca/en/forum/using-formulize-no-internet-access#comment-4554
     $url = $this->api_url . $field . '=' . urlencode($value);
     if (!ini_get('allow_url_fopen')) {
         $output = '';
         $ch = curl_init();
         if (!curl_setopt($ch, CURLOPT_URL, "{$url}")) {
             icms_core_Debug::message($this->api_url . $field . '=' . $value);
             echo "<script> alert('" . _US_SERVER_PROBLEM_OCCURRED . "'); window.history.go(-1); </script>\n";
         }
         curl_setopt($ch, CURLOPT_URL, "{$url}");
         curl_setopt($ch, CURLOPT_HEADER, 0);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
         $output .= curl_exec($ch);
         curl_close($ch);
         if (preg_match("#<appears>(.*)</appears>#i", $output, $out)) {
             $spam = $out[1];
         }
     } else {
         $file = fopen($url, "r");
         if (!$file) {
             icms_core_Debug::message($this->api_url . $field . '=' . $value);
             echo "<script> alert('" . _US_SERVER_PROBLEM_OCCURRED . "'); window.history.go(-1); </script>\n";
         }
         while (!feof($file)) {
             $line = fgets($file, 1024);
             if (preg_match("#<appears>(.*)</appears>#i", $line, $out)) {
                 $spam = $out[1];
                 break;
             }
         }
         fclose($file);
     }
     return $spam == 'yes';
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:45,代码来源:StopSpammer.php


示例5: checkForField

 /**
  * Check the StopForumSpam API for a specific field (username, email or IP)
  *
  * @param string $field field to check
  * @param string $value value to validate
  * @return true if spammer was found with passed info
  */
 public function checkForField($field, $value)
 {
     $spam = false;
     $url = $this->api_url . $field . '=' . urlencode($value);
     if (!ini_get('allow_url_fopen')) {
         $output = '';
         $ch = curl_init();
         if (!curl_setopt($ch, CURLOPT_URL, "{$url}")) {
             icms_core_Debug::message($this->api_url . $field . '=' . $value);
             echo "<script> alert('" . _US_SERVER_PROBLEM_OCCURRED . "'); window.history.go(-1); </script>\n";
         }
         curl_setopt($ch, CURLOPT_URL, "{$url}");
         curl_setopt($ch, CURLOPT_HEADER, 0);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
         $output .= curl_exec($ch);
         curl_close($ch);
         if (preg_match("#<appears>(.*)</appears>#i", $output, $out)) {
             $spam = $out[1];
         }
     } else {
         $file = fopen($url, "r");
         if (!$file) {
             icms_core_Debug::message($this->api_url . $field . '=' . $value);
             echo "<script> alert('" . _US_SERVER_PROBLEM_OCCURRED . "'); window.history.go(-1); </script>\n";
         }
         while (!feof($file)) {
             $line = fgets($file, 1024);
             if (preg_match("#<appears>(.*)</appears>#i", $line, $out)) {
                 $spam = $out[1];
                 break;
             }
         }
         fclose($file);
     }
     return $spam == 'yes';
 }
开发者ID:nao-pon,项目名称:impresscms,代码行数:43,代码来源:StopSpammer.php


示例6: XoopsFormElementTray

 public function XoopsFormElementTray($caption, $delimeter = "&nbsp;", $name = "")
 {
     $this->__construct($caption, $delimeter, $name);
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_form_elements_Tray', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }
开发者ID:nao-pon,项目名称:impresscms,代码行数:5,代码来源:formelementtray.php


示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setErrors = icms_core_Debug::setDeprecated('icms_core_Kernel', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:5,代码来源:icmskernel.php


示例8: __construct

 public function __construct($caption, $name, $maxfilesize = '4096000')
 {
     parent::__construct($caption, $name, $maxfilesize);
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_config_item_Object', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:5,代码来源:formfile.php


示例9: insert


//.........这里部分代码省略.........
         return false;
     }
     if ($obj->isNew()) {
         $eventResult = $this->executeEvent('beforeInsert', $obj);
         if (!$eventResult) {
             $obj->setErrors('An error occured during the BeforeInsert event');
             return false;
         }
     } else {
         $eventResult = $this->executeEvent('beforeUpdate', $obj);
         if (!$eventResult) {
             $obj->setErrors('An error occured during the BeforeUpdate event');
             return false;
         }
     }
     if (!$obj->cleanVars()) {
         $obj->setErrors('Variables were not cleaned properly.');
         return false;
     }
     $fieldsToStoreInDB = array();
     foreach ($obj->cleanVars as $k => $v) {
         if ($obj->vars[$k]['data_type'] == XOBJ_DTYPE_INT) {
             $cleanvars[$k] = (int) $v;
         } elseif (is_array($v)) {
             $cleanvars[$k] = $this->db->quoteString(implode(',', $v));
         } else {
             $cleanvars[$k] = $this->db->quoteString($v);
         }
         if ($obj->vars[$k]['persistent']) {
             $fieldsToStoreInDB[$k] = $cleanvars[$k];
         }
     }
     if ($obj->isNew()) {
         if (!is_array($this->keyName)) {
             if ($cleanvars[$this->keyName] < 1) {
                 $cleanvars[$this->keyName] = $this->db->genId($this->table . '_' . $this->keyName . '_seq');
             }
         }
         $sql = 'INSERT INTO ' . $this->table . ' (' . implode(',', array_keys($fieldsToStoreInDB)) . ') VALUES (' . implode(',', array_values($fieldsToStoreInDB)) . ')';
     } else {
         $sql = 'UPDATE ' . $this->table . ' SET';
         foreach ($fieldsToStoreInDB as $key => $value) {
             if (!is_array($this->keyName) && $key == $this->keyName || is_array($this->keyName) && in_array($key, $this->keyName)) {
                 continue;
             }
             if (isset($notfirst)) {
                 $sql .= ',';
             }
             $sql .= ' ' . $key . ' = ' . $value;
             $notfirst = true;
         }
         if (is_array($this->keyName)) {
             $whereclause = '';
             for ($i = 0; $i < count($this->keyName); $i++) {
                 if ($i > 0) {
                     $whereclause .= ' AND ';
                 }
                 $whereclause .= $this->keyName[$i] . ' = ' . $obj->getVar($this->keyName[$i]);
             }
         } else {
             $whereclause = $this->keyName . ' = ' . $obj->getVar($this->keyName);
         }
         $sql .= ' WHERE ' . $whereclause;
     }
     if ($debug) {
         icms_core_Debug::message($sql);
     }
     if (false != $force) {
         $result = $this->db->queryF($sql);
     } else {
         $result = $this->db->query($sql);
     }
     if (!$result) {
         $obj->setErrors($this->db->error());
         return false;
     }
     if ($obj->isNew() && !is_array($this->keyName)) {
         $obj->assignVar($this->keyName, $this->db->getInsertId());
     }
     $eventResult = $this->executeEvent('afterSave', $obj);
     if (!$eventResult) {
         $obj->setErrors('An error occured during the AfterSave event');
         return false;
     }
     if ($obj->isNew()) {
         $obj->unsetNew();
         $eventResult = $this->executeEvent('afterInsert', $obj);
         if (!$eventResult) {
             $obj->setErrors('An error occured during the AfterInsert event');
             return false;
         }
     } else {
         $eventResult = $this->executeEvent('afterUpdate', $obj);
         if (!$eventResult) {
             $obj->setErrors('n error occured during the AfterUpdate event');
             return false;
         }
     }
     return true;
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:101,代码来源:Handler.php


示例10: XoopsFormTextArea

 /**
  * Constuctor
  *
  * @param	string  $caption    caption
  * @param	string  $name       name
  * @param	string  $value      initial content
  * @param	int     $rows       number of rows
  * @param	int     $cols       number of columns
  */
 function XoopsFormTextArea($caption, $name, $value = "", $rows = 5, $cols = 50)
 {
     parent::__construct($caption, $name, $value, $rows, $cols);
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_form_elements_Textarea', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:14,代码来源:formtextarea.php


示例11: sprintf

 public function &getAuthConnection($uname)
 {
     parent::getAuthConnection($uname);
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_auth_Factory', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:5,代码来源:authfactory.php


示例12: xoops_write_index_file

/**
 * Writes index file
 * @param string  $path  path to the file to write
 * @return bool
 * @todo use language constants for error messages
 * @todo Move to static class Filesystem
 */
function xoops_write_index_file($path = '')
{
    icms_core_Debug::setDeprecated('icms_core_Filesystem::writeIndexFile', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_core_Filesystem::writeIndexFile($path);
}
开发者ID:nao-pon,项目名称:impresscms,代码行数:12,代码来源:cp_functions.php


示例13: sprintf

 /**
  *
  * @deprecated	Use the handler method instead
  * @todo		Remove in version 1.4
  * @param unknown_type $dirname
  */
 public function &getByDirName($dirname)
 {
     icms_core_Debug::setDeprecated('Module Handler', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
     $modhandler = icms::handler('icms_module');
     $inst =& $modhandler->getByDirname($dirname);
     return $inst;
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:13,代码来源:Object.php


示例14: __construct

 public function __construct($caption, $name, $value, $rows = 5, $cols = 50, $hiddentext = "xoopsHiddenText", $options = array())
 {
     parent::__construct($caption, $name, $value, $rows, $cols, $hiddentext, $options);
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_form_elements_Dhtmltextarea', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:5,代码来源:formdhtmltextarea.php


示例15: __construct

 public function __construct(&$objectArr, $myId, $parentId, $rootId = null)
 {
     parent::__construct($objectArr, $myId, $parentId, $rootId);
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_ipf_Tree', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:5,代码来源:icmspersistabletree.php


示例16: __construct

 /**
  * Constructor
  * Sets all the values / variables for the IcmsForm class
  * @param	string    &$target                  reference to targetobject (@todo, which object will be passed here?)
  * @param	string    $form_name                the form name
  * @param	string    $form_caption             the form caption
  * @param	string    $form_action              the form action
  * @param	string    $form_fields              the form fields
  * @param	string    $submit_button_caption    whether to add a caption to the submit button
  * @param	bool      $cancel_js_action         whether to invoke a javascript action when cancel button is clicked
  * @param	bool      $captcha                  whether to add captcha
  */
 public function __construct(&$target, $form_name, $form_caption, $form_action, $form_fields = null, $submit_button_caption = false, $cancel_js_action = false, $captcha = false)
 {
     parent::__construct(&$target, $form_name, $form_caption, $form_action, $form_fields, $submit_button_caption, $cancel_js_action, $captcha);
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_ipf_form_Base', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }
开发者ID:nao-pon,项目名称:impresscms,代码行数:17,代码来源:icmsform.php


示例17: __construct

 public function __construct($title, $name, $action, $method = "post", $addtoken = false)
 {
     parent::__construct($title, $name, $action, $method, $addtoken);
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_form_Simple', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:5,代码来源:simpleform.php


示例18:

<?php

// $Id: xoopsuser.php 10337 2010-07-13 15:37:14Z skenow $
// this file is for backward compatibility only
if (!defined('ICMS_ROOT_PATH')) {
    exit;
}
icms_core_Debug::setDeprecated('', 'class/xoopsuser.php file will be removed in ImpressCMS 1.4 - use kernel/user.php');
/**
 * Include the user class
 * @deprecated use kernel/user.php instead
 * @todo Remove this file in 1.4
 */
require_once ICMS_ROOT_PATH . '/kernel/user.php';
开发者ID:nao-pon,项目名称:impresscms,代码行数:14,代码来源:xoopsuser.php


示例19: getUserRankList

 /**
  * Gets list of all user ranks in the database
  * @deprecated	Use SystemUserrankHandler->getList
  * @todo		Remove in version 1.4
  *
  * @return  array	 $ret   list of user ranks
  */
 public static function getUserRankList()
 {
     icms_core_Debug::setDeprecated('SystemUserrankHandler->getList', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
     return icms_getModuleHandler("userrank", "system")->getList(icms_buildCriteria(array("rank_special" => 1)));
 }
开发者ID:nao-pon,项目名称:impresscms,代码行数:12,代码来源:xoopslists.php


示例20: __construct

 public function __construct($name = _CORE_TOKEN, $timeout = 0)
 {
     parent::__construct($name, $timeout);
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_form_elements_Hiddentoken', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }
开发者ID:nao-pon,项目名称:impresscms,代码行数:5,代码来源:formhiddentoken.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP icms_db_criteria_Compo类代码示例发布时间:2022-05-23
下一篇:
PHP icms_core_DataFilter类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap