Changeset 19448
- Timestamp:
- 2010/11/07 03:01:00 (13 years ago)
- Location:
- branches/camp/camp-2_5-E/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camp/camp-2_5-E/data/class/pages/admin/system/LC_Page_Admin_System_Plugin.php
r19446 r19448 82 82 require_once(DATA_PATH.'/'.$name.'/'.$name.'.php'); 83 83 $plugin = new $name(); 84 if(count($arrPlugins) == 0){ 85 //新規インストール 86 $plugin->install(); 87 }else{ 88 //再インストール 89 90 } 84 $plugin->install(); 91 85 break; 92 86 case 'uninstall': -
branches/camp/camp-2_5-E/data/plugin/testPlugin1/TestPlugin1.php
r19447 r19448 36 36 public function install(){ 37 37 $objQuery = new SC_Query(); 38 39 38 $arrPlugins = $objQuery->get("dtb_plugin", "plugin_id", "plugin_name = ?",array($name)); 40 39 if(count($arrPlugins) == 0){ … … 49 48 ); 50 49 } 50 51 51 $objQuery->insert("dtb_plugin", $data); 52 52
Note: See TracChangeset
for help on using the changeset viewer.