function loop_menu($menu) { foreach ($menu as $item) { ?> <li> <div class="sortable"> <img class="handle" src="<?php echo secure_base_url(); ?> images/admin/grip.gif" style="float:left;margin-right:10px;"/> <span rel="<?php echo $item->url; ?> "><?php echo $item->name; ?> </span><br style="clear:both;"/> </div> <?php if (count($item->children) > 0) { loop_menu($item->children); } $count++; ?> <ul class="sortable_container" style="margin-left:10px; border:1px solid #000;"> </ul> </li> <?php } }
function secure_page() { if (current_base_url() == strtolower(secure_base_url())) { return true; } else { return false; } }
<?php include 'header.php'; ?> <form id="settings_form" method="post" action="<?php echo secure_base_url(); echo $this->config->item('admin_folder'); ?> /shipping/settings/<?php echo $module; ?> "> <div class="button_set"> <input type="submit" value="submit"/> <input type="button" value="cancel" onclick="window.location='<?php echo secure_base_url(); echo $this->config->item('admin_folder'); ?> /shipping'"> </div> <div id="gc_tabs"> <ul> <li><a href="#gc_settings">Shipping Settings</a></li> </ul> <div id="gc_settings"> <?php echo $form; ?> </div>
function page_loop($pages, $dash = '') { foreach ($pages as $page) { ?> <tr class="gc_row"> <td class="gc_cell_left"> <?php echo $dash . ' ' . $page->title; ?> </td> <td class="gc_cell_right list_buttons"> <a href="<?php echo secure_base_url(); echo $GLOBALS['admin_folder']; ?> /pages/delete/<?php echo $page->id; ?> " onclick="return areyousure();">Delete</a> <?php if (empty($page->content)) { ?> <a href="<?php echo base_url(); echo $GLOBALS['admin_folder']; ?> /pages/link_form/<?php echo $page->id; ?> ">Edit</a> <a href="<?php echo $page->url; ?> " target="_blank">Follow Link</a> <?php } else { ?> <a href="<?php echo base_url(); echo $GLOBALS['admin_folder']; ?> /pages/form/<?php echo $page->id; ?> ">Edit</a> <a href="/<?php echo $page->slug; ?> " target="_blank">Go to Page</a> <?php } ?> </td> </tr> <?php page_loop($page->children, $dash . '-'); } }
echo $module; ?> </td> <td class="gc_cell_right list_buttons"> <?php if ($enabled) { ?> <a href="<?php echo base_url() . $this->config->item('admin_folder'); ?> /payment/uninstall/<?php echo $module; ?> " onclick="return areyousure();">Uninstall</a> <a href="<?php echo secure_base_url() . $this->config->item('admin_folder'); ?> /payment/settings/<?php echo $module; ?> ">Settings</a> <?php } else { ?> <a href="<?php echo base_url() . $this->config->item('admin_folder'); ?> /payment/install/<?php echo $module; ?> ">Install</a>
function printLoginForm($authenticators, $authenticator, $class, $redirect = "") { if ($authenticator == gCOSI_AUTH_METHOD_SHIBBOLETH) { print "<div class='" . $class . "' id='" . $authenticator . "_LoginForm'>"; print "<small>Log into the ANDS Online Services Dashboard using your AAF credentials:</small>"; print " <img src='" . asset_url('img/aaf_logo.gif', 'base') . "' style='display:block;margin:10px auto;'/>"; print " <a href='" . secure_host_url() . gSHIBBOLETH_SESSION_INITIATOR . "?target=" . secure_base_url() . "auth/setUser' class='btn btn-primary btn-block'>Login using " . $authenticators[$authenticator] . "</a>"; print "</div>"; } else { print "<div class='" . $class . "' id='" . $authenticator . "_LoginForm'>"; print " <form class='form' action='" . base_url("auth/login") . "' method='post'>"; print " <input type='hidden' name='redirect' value=" . $redirect . "/>"; print " <div class='control-group'>"; print " <div class='controls'>"; print " <label>Username</label>"; print " <input type='text' id='inputUsername' name='inputUsername' placeholder='Username'>"; print " </div>"; print " </div>"; print " <div class='control-group'>"; print " <div class='controls'>"; print " <label>Password</label>"; print " <input type='password' id='inputPassword' name='inputPassword' placeholder='Password'>"; print " </div>"; print " </div>"; print " <div class='control-group'>"; print " <div class='controls'>"; print " <button type='submit' class='btn btn-primary btn-block'>Login using " . $authenticators[$authenticator] . "</button>"; print " </div>"; print " </div>"; print " </form>"; print "</div>"; } }
function my_account($offset = 0) { //make sure they're logged in $this->Customer_model->is_logged_in('secure/my_account/'); $data['gift_cards_enabled'] = $this->gift_cards_enabled; $data['customer'] = $this->go_cart->customer(); $data['addresses'] = $this->Customer_model->get_address_list($this->customer['id']); $data['page_title'] = 'Welcome ' . $data['customer']['firstname'] . ' ' . $data['customer']['lastname']; $data['customer_addresses'] = $this->Customer_model->get_address_list($data['customer']['id']); // load other page content //$this->load->model('banner_model'); $this->load->model('order_model'); $this->load->helper('directory'); $this->load->helper('date'); //if they want to limit to the top 5 banners and use the enable/disable on dates, add true to the get_banners function // $data['banners'] = $this->banner_model->get_banners(); // $data['ads'] = $this->banner_model->get_banners(true); $data['categories'] = $this->Category_model->get_categories_tierd(0); // paginate the orders $this->load->library('pagination'); $config['base_url'] = secure_base_url() . 'secure/my_account'; $config['total_rows'] = $this->order_model->count_customer_orders($this->customer['id']); $config['per_page'] = '15'; $this->pagination->initialize($config); $data['orders_pagination'] = $this->pagination->create_links(); $data['orders'] = $this->order_model->get_customer_orders($this->customer['id'], $offset); //if they're logged in, then we have all their acct. info in the cookie. /* This is for the customers to be able to edit their account information */ $this->load->library('form_validation'); $this->form_validation->set_rules('company', 'Company', 'trim|max_length[128]'); $this->form_validation->set_rules('firstname', 'First Name', 'trim|required|max_length[32]'); $this->form_validation->set_rules('lastname', 'Last Name', 'trim|required|max_length[32]'); $this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email|max_length[128]|callback_check_email'); $this->form_validation->set_rules('phone', 'Phone', 'trim|required|max_length[32]'); $this->form_validation->set_rules('email_subscribe', 'Subscribe', 'trim|numeric|max_length[1]'); if ($this->input->post('password') != '' || $this->input->post('confirm') != '') { $this->form_validation->set_rules('password', 'Password', 'required|min_length[6]|sha1'); $this->form_validation->set_rules('confirm', 'Confirm Password', 'required|matches[password]'); } else { $this->form_validation->set_rules('password', 'Password'); $this->form_validation->set_rules('confirm', 'Confirm Password'); } if ($this->form_validation->run() == FALSE) { $this->load->view('my_account', $data); } else { $customer = array(); $customer['id'] = $this->customer['id']; $customer['company'] = set_value('company'); $customer['firstname'] = set_value('firstname'); $customer['lastname'] = set_value('lastname'); $customer['email'] = set_value('email'); $customer['phone'] = set_value('phone'); $customer['email_subscribe'] = set_value('email_subscribe'); if ($this->input->post('password') != '') { $customer['password'] = set_value('password'); } $this->customer['company'] = set_value('company'); $this->customer['firstname'] = set_value('firstname'); $this->customer['lastname'] = set_value('lastname'); $this->customer['email'] = set_value('email'); $this->customer['phone'] = set_value('phone'); $this->customer['email_subscribe'] = set_value('email_subscribe'); $this->go_cart->save_customer($this->customer); $this->Customer_model->save($customer); $this->session->set_flashdata('message', 'Your account has been updated'); secure_redirect('secure/my_account'); //$this->load->view('my_account', $data); } }
<p style="text-align:center"> <small>Log into the ANDS Online Services Dashboard using your AAF credentials: </small> <img src="<?php echo asset_url('img/aaf_logo.gif', 'base'); ?> " alt="AAF Logo" style="display:block;margin:10px auto"> <a href="<?php echo secure_host_url() . gSHIBBOLETH_SESSION_INITIATOR . "?target=" . secure_base_url() . "auth/authenticate/shibboleth_sp"; ?> " class="btn btn-primary btn-block"> Login using Australian Access Federation (AAF) credentials </a> </p>
* @author Robert B Gottier * @copyright Copyright (c) 2011 - 2015, Robert B Gottier. (http://brianswebdesign.com/) * @license BSD - http://www.opensource.org/licenses/BSD-3-Clause * @link http://community-auth.com */ ?> <h1>User Account Recovery</h1> <p> This email contains a link to recover your username and password for <?php echo WEBSITE_NAME; ?> . If you are trying to login to <?php echo WEBSITE_NAME; ?> , and cannot remember your username or password, please click on the link below. If you did not request to recover your login information, please respond to this message so we can check your account. </p> <p> <?php echo secure_anchor('user/recovery_verification/' . $user_data->user_id . '/' . $recovery_code, secure_base_url() . 'user/recovery_verification/' . $user_data->user_id . '/' . $recovery_code, 'target ="_blank" style="color: orange; text-decoration: none;"'); ?> </p> <?php /* End of file user-recovery.php */ /* Location: /application/views/email_templates/user-recovery.php */
* Community Auth - Registration Confirmation Email View * * Community Auth is an open source authentication application for CodeIgniter 2.2.2 * * @package Community Auth * @author Robert B Gottier * @copyright Copyright (c) 2011 - 2015, Robert B Gottier. (http://brianswebdesign.com/) * @license BSD - http://www.opensource.org/licenses/BSD-3-Clause * @link http://community-auth.com */ ?> <h1>Registration Confirmation</h1> <p> This email contains a link to confirm your email address, which is part of the registration process for an account at <?php echo WEBSITE_NAME; ?> . Please click the following link below to confirm your registration. <br /> <br /> <?php echo secure_anchor('register/email_confirmation/' . $registration_id, secure_base_url() . 'register/email_confirmation/' . $registration_id, 'target ="_blank" style="color: orange; text-decoration: none;"'); ?> </p> <?php /* End of file registration-confirmation-registrant.php */ /* Location: /application/views/email_templates/registration-confirmation-registrant.php */