mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 07:06:30 +02:00
remove debug code
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $
|
||||
| $Revision: 1.107 $
|
||||
| $Date: 2009-10-29 13:35:54 $
|
||||
| $Revision: 1.108 $
|
||||
| $Date: 2009-10-29 13:55:08 $
|
||||
| $Author: marj_nl_fr $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -1901,25 +1901,8 @@ class e107plugin
|
||||
return implode(",",$p_addons);
|
||||
}
|
||||
|
||||
function checkAddon($plugin_path,$e_xxx)
|
||||
function checkAddon($plugin_path, $e_xxx)
|
||||
{ // Return 0 = OK, 1 = Fail, 2 = inaccessible
|
||||
|
||||
/*** debug
|
||||
if($plugin_path == 'chatbox_menu' && $e_xxx == 'e_rss')
|
||||
{
|
||||
$file_text = file_get_contents(e_PLUGIN.$plugin_path."/".$e_xxx.".php");
|
||||
if (substr($file_text, 0, 5) != '<'.'?php')
|
||||
echo '<'.'?php';
|
||||
if (substr($file_text, -2, 2) != '?'.'>')
|
||||
echo '?'.'>';
|
||||
if (strrpos($file_text, '?'.'>') !== FALSE)
|
||||
echo 'no ?'.'>';
|
||||
if ( (substr($file_text, -2, 2) != '?'.'>') AND (strrpos($file_text, '?'.'>') !== FALSE) )
|
||||
echo "( (substr(\$file_text, -2, 2) != '?'.'>') OR (strrpos(\$file_text, '?'.'>') === FALSE) )";
|
||||
exit;
|
||||
}
|
||||
*/
|
||||
|
||||
if(is_readable(e_PLUGIN.$plugin_path."/".$e_xxx.".php"))
|
||||
{
|
||||
$file_text = file_get_contents(e_PLUGIN.$plugin_path."/".$e_xxx.".php");
|
||||
|
Reference in New Issue
Block a user