[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/e107_handlers/e107_Compat_handler.php,v $ 14 | $Revision: 1.14 $ 15 | $Date: 2006/10/21 11:05:49 $ 16 | $Author: mrpete $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 if (!defined('e107_INIT')) { exit; } 21 22 /** 23 * A pointer for $cache->retrieve() to help keep old code compatable 24 * 25 * @see ecache::retrieve() 26 * @deprecated deprecated since v.700 27 * 28 * @param string $query 29 * @return string 30 */ 31 function retrieve_cache($query) { 32 if (E107_DBG_DEPRECATED) { 33 global $db_debug; 34 $db_debug->logDeprecated(); 35 } 36 global $e107cache, $e107_debug; 37 if (!is_object($e107cache)) { 38 return FALSE; 39 } 40 $ret = $e107cache->retrieve($query); 41 if ($e107_debug && $ret) { 42 echo "cache used for: {$query} <br />"; 43 } 44 return $ret; 45 } 46 47 /** 48 * A pointer for $cache->set() to help keep old code compatable 49 * 50 * @see ecache::set() 51 * @deprecated deprecated since v.700 52 * 53 * @param string $query 54 * @param string $text 55 * @return string 56 */ 57 function set_cache($query, $text) { 58 if (E107_DBG_DEPRECATED) { 59 global $db_debug; 60 $db_debug->logDeprecated(); 61 } 62 global $e107cache; 63 if (!is_object($e107cache)) { 64 return FALSE; 65 } 66 if ($e107_debug) { 67 echo "cache set for: {$query} <br />"; 68 } 69 $e107cache->set($query, $text); 70 } 71 72 /** 73 * A pointer for $cache->clear() to help keep old code compatable 74 * 75 * @see ecache::clear() 76 * @deprecated deprecated since v.700 77 * 78 * @param string $query 79 * @return bool 80 */ 81 function clear_cache($query) { 82 if (E107_DBG_DEPRECATED) { 83 global $db_debug; 84 $db_debug->logDeprecated(); 85 } 86 global $e107cache; 87 if (!is_object($e107cache)) { 88 return FALSE; 89 } 90 return $e107cache->clear($query); 91 } 92 93 /** 94 * A pointer for $e107->ban() to help keep old code compatable 95 * 96 * @see e107::ban() 97 * @deprecated deprecated since v.700 98 */ 99 function ban() { 100 if (E107_DBG_DEPRECATED) { 101 global $db_debug; 102 $db_debug->logDeprecated(); 103 } 104 global $e107; 105 $e107->ban(); 106 } 107 108 /** 109 * A pointer for $e107->getip() to help keep old code compatable 110 * 111 * @see e107::getip() 112 * @deprecated deprecated since v.700 113 */ 114 function getip() { 115 if (E107_DBG_DEPRECATED) { 116 global $db_debug; 117 $db_debug->logDeprecated(); 118 } 119 global $e107; 120 return $e107->getip(); 121 } 122 123 //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------// 124 class textparse { 125 function editparse($text, $mode = "off") { 126 if (E107_DBG_DEPRECATED) { 127 global $db_debug; 128 $db_debug->logDeprecated(); 129 } 130 global $tp; 131 return $tp->toForm($text); 132 } 133 134 function tpa($text, $mode = '', $referrer = '', $highlight_search = FALSE, $poster_id = '') { 135 if (E107_DBG_DEPRECATED) { 136 global $db_debug; 137 $db_debug->logDeprecated(); 138 } 139 global $tp; 140 return $tp->toHTML($text, TRUE, $mode, $poster_id); 141 } 142 143 function tpj($text) { 144 if (E107_DBG_DEPRECATED) { 145 global $db_debug; 146 $db_debug->logDeprecated(); 147 } 148 return $text; 149 } 150 151 function formtpa($text, $mode = '') { 152 if (E107_DBG_DEPRECATED) { 153 global $db_debug; 154 $db_debug->logDeprecated(); 155 } 156 global $tp; 157 return $tp->toDB($text); 158 } 159 160 function formtparev($text) { 161 if (E107_DBG_DEPRECATED) { 162 global $db_debug; 163 $db_debug->logDeprecated(); 164 } 165 global $tp; 166 return $tp->toFORM($text); 167 } 168 169 } 170 //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------// 171 172 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |