<?php echo $log_list; ?> </tbody> </table> <div class="pagination"> <?php echo $button_previous; echo $paginate; echo '[total: ' . count($stats) . ']'; echo $button_next; ?> </div> <a class="trash" title="" href="index.php?p=stats&kill&token=<?php newToken(true); ?> "><?php e('Delete all stat data'); ?> </a> </div> </div> <script src="core/sorttable.js"></script> <script> menu=document.getElementById('menu'); menu_icon=document.getElementById('menu_icon'); body=document.getElementById('body');
function generate_users_status_formlist($text = 'Select new status for the users', $user_text = 'user', $admin_text = 'admin') { global $auto_restrict, $PROFILES; echo '<h1>' . $text . '</h1><form action="" method="POST" class="auto_restrict_users_status"><input type="hidden" name="users_status" value="1"/><table>'; foreach ($auto_restrict['users'] as $key => $user) { $class = ' class="' . $user['status'] . '" title="' . e($user['status'], false) . '"'; if (empty($user['status']) || $user['status'] != 'superadmin') { echo '<tr>'; echo '<td><label ' . $class . '>' . $user['login'] . '</label></td>'; echo '<td><select name="' . $user['login'] . '" class="npt">'; foreach ($PROFILES as $profile) { $selected = ''; $class = ''; if ($user['status'] == $profile) { $class = 'selected="true"'; } echo '<option value="' . $profile . '" ' . $class . '>' . e($profile, false) . '</option>'; } echo '</select></td>'; newToken(); echo '</tr>'; } } echo '</table><input type="submit" value="Ok" class="btn red"/></form>'; }
echo $mask; ?> " title="<?php e('Search in the uploaded files'); ?> " placeholder="<?php e('Filter'); ?> "/> <input type="submit" value="ok"/> <input type="hidden" value="<?php echo LANGUAGE; ?> " name="lang"/> <?php newToken(); ?> </form> <div style="clear:both"></div> </div> </header> <table> <tr> <?php include 'auto_dropzone.php'; ?> <td> <ul class="list" id="liste"> <h1><?php echo $mask;
function resetCheck($userID, $gToken, $email, $SafeForUse = false) { echo 'Checking Data...<br>'; $dbToken = db::executeSqlColumn("select token FROM pwReset where user_id = {$userID}"); echo 'getting db token...<br>'; if ($dbToken[0] !== $gToken || empty($gToken)) { newToken($userID, $email, $SafeForUse); } echo 'loading form since a valid token was provided...<br>'; changePwForm($userID, $gToken, $email); die('die'); }
e('Filename'); ?> "/> <textarea name="editor_content" id="raw" class="npt"><?php if (isset($editor_content)) { echo $editor_content; } ?> </textarea> <input type="submit" class="btn" value="<?php e('Save'); ?> "/> </div> <input type="hidden" name="token" value="<?php newToken(TRUE); ?> "/> <?php echo $overwrite; ?> <div class="result_tab hidden"><div id="visu" class="markdown"></div></div> <div class="help_tab hidden"><?php echo nl2br(str_replace(' ', ' ', e('markdown_help', false))); ?> </div> </figcaption></figure></div> </form> </div>
function generate_config_form($vars = null) { if (empty($vars)) { $vars = extract_config_vars(); } include 'core/config_form_help.php'; echo '<form action="#" method="POST"><input type="hidden" name="config" value="1"/><table>'; foreach ($vars as $varname => $value) { if (isset($config_form['help'][$varname])) { echo '<tr>'; if (is_bool($value)) { if ($value) { $checked = ' checked="true" '; } else { $checked = ''; } echo '<td><label>' . str_replace('_', ' ', $varname) . '</label><p>' . $config_form['help'][$varname] . '</p></td><td><input class="npt" type="checkbox" ' . $checked . 'name="' . $varname . '"/></td>'; } elseif (!empty($config_form['options'][$varname]) && is_array($config_form['options'][$varname])) { echo '<td><label>' . str_replace('_', ' ', $varname) . '</label><p>' . $config_form['help'][$varname] . '</p></td><td><select class="npt" name="' . $varname . '">' . "\n"; foreach ($config_form['options'][$varname] as $option) { if ($option == $value) { $selected = ' selected="true" '; } else { $selected = ''; } echo '<option value="' . $value . '" ' . $selected . '>' . e($option, false) . '</option>' . "\n"; } echo '</select></td>' . "\n"; } else { echo '<td><label>' . str_replace('_', ' ', $varname) . '</label><p>' . $config_form['help'][$varname] . '</p></td><td><input class="npt" name="' . $varname . '" value="' . $value . '"/></td>'; } echo '</tr>'; } //echo "'$varname' => e('text',false),\n"; } newToken(); echo '<tr><td></td><td><input type="submit" class="btn" value="Ok"/><td><tr></table></form>'; }
function generate_users_formlist($text = 'Users list', $text2 = 'Check users to delete account and files') { global $auto_restrict; if (!is_user_admin()) { return false; } echo '<h1>' . $text . '</h1><h2>' . $text2 . '</h2><form action="" method="POST" class="auto_restrict_users_list"><ol>'; foreach ($auto_restrict['users'] as $key => $user) { echo '<li>'; echo '<label>'; echo '<input type="checkbox" name="user_key[]" value="' . $key . '"/>'; newToken(); echo $user['login']; echo '</li>'; } echo '</ol><input type="submit" value="Ok"/></form>'; }
function generate_users_formlist() { global $auto_restrict; if (is_user_admin()) { $arraykey = array_keys($auto_restrict['users']); $firstkey = array_shift($arraykey); echo '<ul>' . "\n"; foreach ($auto_restrict['users'] as $key => $user) { if ($firstkey != $key) { $size = e('empty', false); // le dossier utilisateur n'est pas créé à la création du compte mais à la 1er connexion if (is_dir($_SESSION['upload_root_path'] . $user['login'])) { $items = count(glob($_SESSION['upload_root_path'] . $user['login'] . '/*', GLOB_BRACE)); // on compte le nombre d'éléments du dossier if ($items != 0) { $size = getFolderSize($_SESSION['upload_root_path'] . $user['login']); } // taille du dossier } echo '<li>' . "\n"; echo '<label>'; echo '<input type="checkbox" name="user_key[]" value="' . $key . '"/>'; newToken(); echo '<span>' . $user['login'] . ' (' . $size . ')</span>'; echo '</li>' . "\n"; } } echo '</ul>' . "\n" . '<p class="clear"><input id="submit" type="submit" class="btn" value="Ok" /></p>' . "\n"; } }