--- alx-src/branches/alx-web-060/plugin.php 2012/04/19 17:27:52 3514 +++ alx-src/branches/alx-web-060/plugin.php 2012/04/19 18:01:58 3515 @@ -1,7 +1,7 @@ include('include/basesql.php'); -$configure = sqlfirst('SELECT configflag FROM cfg_plugins WHERE plugin="'.$plugin.'"'); +$configure = sqlfirst('SELECT configflag FROM avail_plugins WHERE plugin="'.$plugin.'"'); if( $configure[configflag] != '1' ) { echo 'Plugin "'.$plugin.'" needs no configuration'; @@ -17,7 +17,17 @@ $drop = array(); $drop['id'] = 'hidden'; $drop['serial'] = 'ignore'; + if (file_exists('include/plugins/'.$plugin.'.php')) + { + include('include/plugins/'.$plugin.'.php'); + } + // GGF. NEUEN DATENSATZ EINF.GEN + if(isset($_POST['do_add'])) + { + list($bla,$what) = explode(' ',$_POST['do_add']); + if($what=='CONFIG') sqladd($plugintable, array('serial'=>$id)); + } // GGF. SPEICHERN if($_POST['do_upl']) @@ -50,6 +60,18 @@ $data[$t] = sqlfirst('SELECT * FROM '.$t.' WHERE serial='.$id); } + $plugininfo = sqlfirst('SELECT * FROM '.$plugintable.' WHERE serial='.$id); + echo "DEBUG: plugininfo[serial]='".$plugininfo['serial']."'"; + if ($plugininfo['serial'] == NULL ) + { + echo "data = null"; + $showconfigadd = 1; + } else { + echo "data = filled"; + $showconfigadd = 0; + } + + // ANZEIGEN function parsearr($name, $arr, $del=false, $wireless=false) @@ -117,7 +139,8 @@ // ANZEIGEN => NAVI echo '