From 39d4558eaf5fa5fd6060a0f202b22bcec5a982dc Mon Sep 17 00:00:00 2001 From: polo Date: Fri, 9 Oct 2026 15:09:38 +0200 Subject: =?UTF-8?q?variables=20d=C3=A9plac=C3=A9es=20dans=20Config,=20supp?= =?UTF-8?q?ressions=20constructeurs=20Latex.php,=20=C3=A9bauche=20de=20sec?= =?UTF-8?q?tion=206=5Fadvertising,=20un=20peu=20de=20typage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main_loop.php | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'src/main_loop.php') diff --git a/src/main_loop.php b/src/main_loop.php index 8dac901..511ced6 100644 --- a/src/main_loop.php +++ b/src/main_loop.php @@ -62,36 +62,17 @@ while($main_loop) elseif($choix_niv1 === ZenitySetup::$menu_principal['entrees'][5] || $section[0] === 6) // = Communication { echo("choix: ". ZenitySetup::$menu_principal['entrees'][5] . "\n"); - $MenuCommunication = new ZenityList(ZenitySetup::$menu_communication['text'], ZenitySetup::$menu_communication['entrees']); - $choix_niv2 = exec($MenuCommunication->get()); - if($choix_niv2 === ZenitySetup::$menu_communication['entrees'][0]) // = Flyer (nécessite gimp) - { - exec(windowAppCommand(Config::$image_editor, $flyer)); - } - elseif($choix_niv2 === ZenitySetup::$menu_communication['entrees'][1]) // = Carte de visite (nécessite scribus) - { - exec(windowAppCommand(Config::$publishing, $business_card)); - } - elseif($choix_niv2 === ZenitySetup::$menu_communication['entrees'][2]) // = Explorateur de fichiers - { - exec(windowAppCommand($file_explorer, Config::$pub_path)); - } - else - { - // retour menu principal - } + $section = EditAdvertising(); } // -- SECTION 7: BDD -- elseif($choix_niv1 === ZenitySetup::$menu_principal['entrees'][6] || $section[0] === 7) // = Base de données { echo("choix: ". ZenitySetup::$menu_principal['entrees'][6] . "\n"); - if($sqlitebrowser_enable) - { + if($sqlitebrowser_enable){ exec(windowAppCommand(Config::$sqlite_gui, Config::$db_path)); } - else - { + else{ exec($x_term_command . ' ' . $sqlite_cli . ' ' . Config::$db_path); // correpond à priori à: xterm -e sqlite3 ~/ORDIPOLO/Appli_PHP/ordipolo.sqlite } } -- cgit v1.2.3