/** * List all users. */ function users_list_controller() { global $privileges; if (!in_array('admin_user', $privileges)) { redirect(page_link_to('')); } $order_by = 'Nick'; if (isset($_REQUEST['OrderBy']) && in_array($_REQUEST['OrderBy'], User_sortable_columns())) { $order_by = $_REQUEST['OrderBy']; } $users = Users($order_by); if ($users === false) { engelsystem_error('Unable to load users.'); } foreach ($users as &$user) { $user['freeloads'] = count(ShiftEntries_freeloaded_by_user($user)); } return array(_('All users'), Users_view($users, $order_by, User_arrived_count(), User_active_count(), User_force_active_count(), ShiftEntries_freeleaded_count(), User_tshirts_count(), User_got_voucher_count())); }
EL NÚCLEO DE LA APLICACIÓN! */ session_start(); #Constantes de conexión define('DB_HOST', 'localhost'); define('DB_USER', 'root'); define('DB_PASS', ''); define('DB_NAME', 'ocrendbb'); #Constantes de la APP define('HTML_DIR', 'html/'); define('APP_TITLE', 'OcrendBB'); define('APP_COPY', 'Copyright © ' . date('Y', time()) . ' Ocrend Software.'); define('APP_URL', 'http://localhost/GitHub/OcrendBB/'); #Constantes de PHPMailer define('PHPMAILER_HOST', 'p3plcpnl0173.prod.phx3.secureserver.net'); define('PHPMAILER_USER', '*****@*****.**'); define('PHPMAILER_PASS', 'Prinick2016'); define('PHPMAILER_PORT', 465); #Estructura require 'vendor/autoload.php'; require 'core/models/class.Conexion.php'; require 'core/bin/functions/Encrypt.php'; require 'core/bin/functions/Users.php'; require 'core/bin/functions/Categorias.php'; require 'core/bin/functions/Foros.php'; require 'core/bin/functions/EmailTemplate.php'; require 'core/bin/functions/LostpassTemplate.php'; require 'core/bin/functions/UrlAmigable.php'; $_users = Users(); $_categorias = Categorias(); $_foros = Foros();
</p> <p><?php echo "<button class='btn-gerar' style='vertical-align:middle'><span>Concluir</span></button>"; ?> </p> </div> </article> <input id="ac-6" name="accordion-1" type="checkbox" onclick="animCss(this, 2)" /> <label class="btnRelGeral" for="ac-6">Alterar senha de usuário</label> <article id="aac-6" class="rel-geral"> <div class="rel rel-ger" style="margin: 2.5em auto;"> <p class="p-text">Usuário</p> <p class="rel-ger-p"><?php echo "<select id='' name='idUser' class='input-geral rel-ger-cliente selected'><option value=''>...</option>"; Users($conexao); echo "</select>"; ?> </p> <p class="p-text">Nova Senha</p><p class="rel-ger-p"><?php echo "<input type='password' id='' name='newSenha' class='input-geral rel-ger-cliente'>"; ?> </p> <p><?php echo "<button class='btn-gerar' style='vertical-align:middle'><span>Concluir</span></button>"; ?> </p> </div> </article> <?php