Changeset 19767 for branches/version-2_5-dev/data/class/SC_Plugin.php
- Timestamp:
- 2010/12/25 19:02:43 (16 years ago)
- File:
-
- 1 edited
-
branches/version-2_5-dev/data/class/SC_Plugin.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_Plugin.php
r19670 r19767 16 16 17 17 function __construct(){ 18 if (!defined(PLUGIN_PATH)){19 define( "PLUGIN_PATH",HTML_PATH."/user_data/plugins/");18 if (!defined(PLUGIN_PATH)) { 19 define('PLUGIN_PATH', USER_PATH . 'plugins/'); 20 20 } 21 21 $this->init(); … … 57 57 function disablePlugin(){ 58 58 $objQuery = new SC_Query(); 59 $name = preg_replace("/.php/", "", __FILE__); 59 $name = preg_replace("/.php/", "", __FILE__); // XXX 正規表現エスケープ漏れでは? 60 60 $objQuery->update("dtb_plugin", array('enable'=>'0'), "plugin_name = ?", array($name)); 61 61 } … … 63 63 function enablePlugin(){ 64 64 $objQuery = new SC_Query(); 65 $name = preg_replace("/.php/", "", __FILE__); 65 $name = preg_replace("/.php/", "", __FILE__); // XXX 正規表現エスケープ漏れでは? 66 66 $objQuery->update("dtb_plugin", array('enable'=>'0'), "plugin_name = ?", array($name)); 67 67 }
Note: See TracChangeset
for help on using the changeset viewer.
