/** * Match User details and Logged in Application * * @return Redirect */ public function login() { if (user::id()) { AZ::redirect('admin/dashboard'); } $post = $this->input->post(); if ($this->_validate() == FALSE) { $this->index(); return false; } $user_id = $this->user->authenicate($post['username'], $post['password']); if ($user_id) { if (have_permission('dashboard/index')) { AZ::redirect('admin/dashboard'); } else { user::flush(); AZ::redirectError('administrator', __('Unauthorized Access', true)); } } else { AZ::redirectError('administrator', 'Invalid'); } }
<a href="<?php _u('admin/contents/edit_language/' . $language->id); ?> "> <span class="glyphicon glyphicon-edit"></span> <?php __('Edit'); ?> </a> </li> <?php } ?> <?php if (have_permission('contents/remove_language')) { ?> <li> <a href="<?php _u('admin/contents/remove_language/' . $language->id); ?> " class="remove-box"> <span class="glyphicon glyphicon-trash"></span> <?php __('Remove'); ?> </a> </li> <?php }
$failed = false; set_error_handler(function () { global $failed; $failed = true; }, E_WARNING); date_default_timezone_get(); restore_error_handler(); if ($failed) { echo "<h3>Time zone not set!</h3>\n"; echo "<p>You need to set the date.timezone setting in the php.ini file!</p>\n"; } ?> <h4>Database Configuration</h4> <?php $configdir = isset($_SERVER['CONFIG_DIR']) ? $_SERVER['CONFIG_DIR'] : 'local'; if (have_permission(SET_UP_PERMISSION)) { $config_content = @file_get_contents($configdir . DIRECTORY_SEPARATOR . 'config-database.inc', true); if ($config_content === false) { echo '<p>Database configuration file, ' . htmlspecialchars($configdir . DIRECTORY_SEPARATOR . 'config-database.inc', ENT_QUOTES, 'UTF-8') . ', could not be opened.' . '</p>' . "\n"; } else { echo "<pre>\n"; echo htmlspecialchars($config_content, ENT_QUOTES, 'UTF-8'); echo "</pre>\n"; } } else { echo "<p>Database configuration information is available if you are logged in.</p>\n"; } // Try setting up the database, but it's OK if it doesn't work out try { @(include $configdir . DIRECTORY_SEPARATOR . "config-database.inc"); } catch (PDOException $p) {
<a href="<?php _u('admin/users/edit_group/' . $group->id); ?> "> <span class="glyphicon glyphicon-edit"></span> <?php __('Edit'); ?> </a> </li> <?php } ?> <?php if (have_permission('users/remove_group')) { ?> <li> <a href="<?php _u('admin/users/remove_group/' . $group->id); ?> " class="remove-box"> <span class="glyphicon glyphicon-trash"></span> <?php __('Remove'); ?> </a> </li> <?php }
<a href="<?php _u('admin/contents/edit_field/' . $field->id . '/' . $id); ?> "> <span class="glyphicon glyphicon-edit"></span> <?php __('Edit'); ?> </a> </li> <?php } ?> <?php if (have_permission('contents/remove_field')) { ?> <li> <a href="<?php _u('admin/contents/remove_field/' . $field->id . '/' . $id); ?> " class="remove-box"> <span class="glyphicon glyphicon-trash"></span> <?php __('Remove'); ?> </a> </li> <?php }
<a href="<?php _u('admin/menus/edit_item/' . $q . '/' . $item['id']); ?> "> <span class="glyphicon glyphicon-edit"></span> <?php __('Edit'); ?> </a> </li> <?php } ?> <?php if (have_permission('menus/remove_item')) { ?> <li> <a href="<?php _u('admin/menus/remove_item/' . $item['id']); ?> " class="remove-box"> <span class="glyphicon glyphicon-trash"></span> <?php __('Remove'); ?> </a> </li> <?php }
<li> <a href="<?php _u('admin/contents/edit/' . $contentType->alias . '/' . $content->id); ?> "> <span class="glyphicon glyphicon-edit"></span> <?php __('Edit'); ?> </a> </li> <?php } ?> <?php if (have_permission('contents/remove')) { ?> <li> <a href="<?php _u('admin/contents/remove/' . $contentType->alias . '/' . $content->id); ?> " class="remove-box"> <span class="glyphicon glyphicon-trash"></span> <?php __('Remove'); ?> </a> </li> <?php } ?>
<a href="<?php _u('admin/users/edit_access/' . $access->id); ?> " class="edit-box"> <span class="glyphicon glyphicon-edit"></span> <?php __('Edit'); ?> </a> </li> <?php } ?> <?php if (have_permission('users/remove_access')) { ?> <li> <a href="<?php _u('admin/users/remove_access/' . $access->id); ?> " class="remove-box"> <span class="glyphicon glyphicon-trash"></span> <?php __('Remove'); ?> </a> </li> <?php }
<a href="<?php _u('admin/settings/edit_setting/' . $configuration->id); ?> " data-target="#editSettingsFieldModel" class=""> <span class="glyphicon glyphicon-edit"></span> <?php __('Edit'); ?> </a> </li> <?php } ?> <?php if (have_permission('settings/remove_setting')) { ?> <li> <a href="<?php _u('admin/settings/remove_setting/' . $configuration->id); ?> " class="remove-box"> <span class="glyphicon glyphicon-trash"></span> <?php __('Remove'); ?> </a> </li> <?php }
<a href="<?php _u('admin/contents/edit_group/' . $group['id'] . '/' . $id); ?> "> <span class="glyphicon glyphicon-edit"></span> <?php __('Edit'); ?> </a> </li> <?php } ?> <?php if (have_permission('contents/remove_group')) { ?> <li> <a href="<?php _u('admin/contents/remove_group/' . $group['id'] . '/' . $id); ?> " class="remove-box"> <span class="glyphicon glyphicon-trash"></span> <?php __('Remove'); ?> </a> </li> <?php }
</thead> <tbody> <?php $sql = 'SELECT racerid, carnumber, lastname, firstname, carname, imagefile,' . (schema_version() < 2 ? "class" : "Classes.sortorder") . ' AS class_sort,' . ' RegistrationInfo.classid, class, RegistrationInfo.rankid, rank, passedinspection, exclude,' . ' EXISTS(SELECT 1 FROM RaceChart WHERE RaceChart.racerid = RegistrationInfo.racerid) AS scheduled,' . ' EXISTS(SELECT 1 FROM RaceChart WHERE RaceChart.classid = RegistrationInfo.classid) AS denscheduled,' . ' EXISTS(SELECT 1 FROM Awards WHERE Awards.awardname = \'' . addslashes($xbs_award_name) . '\' AND' . ' Awards.racerid = RegistrationInfo.racerid) AS xbs' . ' FROM ' . inner_join('RegistrationInfo', 'Classes', 'RegistrationInfo.classid = Classes.classid', 'Ranks', 'RegistrationInfo.rankid = Ranks.rankid') . ' ORDER BY ' . ($order == 'car' ? 'carnumber, lastname, firstname' : ($order == 'den' ? 'class_sort, lastname, firstname' : 'lastname, firstname')); $stmt = $db->query($sql); $n = 1; foreach ($stmt as $rs) { checkin_table_row($rs, $xbs, $use_subgroups, $n); ++$n; } ?> </tbody> </table> <?php if (have_permission(REGISTER_NEW_RACER_PERMISSION)) { ?> <div class="block_buttons"> <input type="button" value="New Racer" data-enhanced="true" onclick='show_new_racer_form();'/> </div> <?php } ?> <div id='edit_racer_modal' class="modal_dialog hidden block_buttons"> <form id="editracerform"> <input id="edit_racer" type="hidden" name="racer" value=""/>