<?php // ------------------------------------------------------------------- // // Add this statements to all you page. Secure at top level. // ------------------------------------------------------------------- // if (!secFile(__FILE__, 80)) { return; } // ------------------------------------------------------------------- // switch ($a) { case 'create_locale_form': echo ' <p> <div class="input-group"> <span class="input-group-addon">Short name</span> <input name="shortName" type="text" class="form-control" value="" placeholder="fr_FR"> </div> </p> <p> <div class="input-group"> <span class="input-group-addon">Long name</span> <input name="longName" type="text" class="form-control" value="" placeholder="Français"> </div> </p> <p> <div class="input-group"> <span class="input-group-addon">Flag path</span> <input name="flagPath" type="text" class="form-control" value="" placeholder="icon-libflags-fr"> </div> </p>
<?php // ------------------------------------------------------------------- // // Add this statements to all you page. Secure at top level. // ------------------------------------------------------------------- // if (!secFile(__FILE__, 10)) { return; } // ------------------------------------------------------------------- // if (get_ini('DEFAULT_HOME_PAGE') == 'all') { foreach ($init->pluginsIndex as $plugin) { if (is_file('plugins/' . $plugin . '/home.php')) { include_once 'plugins/' . $plugin . '/home.php'; echo '<BR>'; } } } else { if (is_file('plugins/' . get_ini('DEFAULT_HOME_PAGE') . '/home.php')) { include_once 'plugins/' . get_ini('DEFAULT_HOME_PAGE') . '/home.php'; } } ?> <!-- Info boxes --> <div class="row"> <div class="col-md-3 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-aqua"><i class="icon iconastic-ios-gear-outline"></i></span> <div class="info-box-content">
<?php // ------------------------------------------------------------------- // // Add this statements to all you page. Adapt only the secLvl variable // ------------------------------------------------------------------- // if (!secFile(__FILE__, 90)) { return; } // ------------------------------------------------------------------- // switch ($a) { case 'create_form': echo ' <div class="alert alert-info" role="alert"> ' . _('#core#_#23#') . ' </div> <p> <select name="job"> '; $pluginM = new pluginManager(); $jobM = new jobManager(); foreach ($init->pluginsIndex as $plugin) { foreach (scandir('plugins/' . $plugin) as $file) { if (!is_dir('plugins/' . $plugin . '/' . $file) && preg_match('#^task_.*_loader.php$#', $file) && $jobM->getId($pluginM->getId($plugin), substr($file, 5, strlen($file) - 16)) == 0) { echo '<option value="' . $pluginM->getId($plugin) . ';' . substr($file, 5, strlen($file) - 16) . '">' . $file . '</option>'; } } } echo ' </select> </p>