public function index() { $_user = $this->uri->segment(1); if (isset($_user) && !empty($_user) && preg_match("/^[a-zA-Z0-9-_]+\$/", $_user)) { if (isset($this->session->userdata['frontlogin']) && $this->session->userdata['frontlogin'] == true && $this->session->userdata['frontuser'] == $_user) { $_details = $this->mFrontend->getDetailsbyURL($_user); if ($_details != false) { $this->session->set_userdata('importUnique', uniqid('imp_', true)); $this->session->set_userdata('fileByCustomer', '1'); $errortype = isset($_GET['errortype']) ? $_GET['errortype'] : false; $errormsg = isset($_GET['errormsg']) ? urldecode($_GET['errormsg']) : ''; $_data = array('title' => __('front_title_welcome'), 'site' => 'frontend/dashboard', 'user' => $_details, 'addnavi' => true, 'errortype' => $errortype, 'errormsg' => $errormsg, 'allowupload' => $_details->userCanUpload == '1' ? 'yes' : 'no', 'showfree' => $this->mGlobal->getConfig('SHOW_FREESPACE_USER')->configVal, 'diskfree' => disk_free_space(FCPATH), 'disktotal' => disk_total_space(FCPATH), 'folder' => isset($_details->defaultFolderID) && !is_null($_details->defaultFolderID) && !empty($_details->defaultFolderID) ? $_details->defaultFolderID : ''); if ($_details->userCanUpload == '1') { $this->load->view('frontend', $_data); } else { redirect($_user . '/userfiles'); } } else { redirect($_user . '/error'); } } else { redirect($_user . '/login'); } } else { if (mGlobal::getConfig('SHOW_CENTRAL_LOGIN')->configVal == 'yes') { redirect('login'); } $_data = array('title' => __('front_title_welcome'), 'site' => 'frontend/index', 'header' => 'header', 'errtype' => false, 'errmsg' => ''); $this->load->view('frontend', $_data); } }
* @copyright Copyright (c) 2013 codingking.co - all rights reserved * @license Commercial * @link http://www.codingking.co/ * * * This source file is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details. */ if (!empty(mGlobal::getConfig('GOOGLE_ANALYTICS')->configVal)) { ?> <script type=”text/javascript”> var _gaq = _gaq || []; _gaq.push(['_setAccount', '<?php echo mGlobal::getConfig('GOOGLE_ANALYTICS')->configVal; ?> ']); _gaq.push(['_gat._anonymizeIp']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <?php } ?> <!-- Page rendered in {elapsed_time} seconds -->
* * * This source file is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details. */ ?> <div class="container" id="login"> <div class="row"> <div class="page-header span7 offset2"> <h3><?php echo __('account_head_login'); ?> <?php echo stripslashes(mGlobal::getConfig('PRODUCT_NAME')->configVal); ?> </h3> </div> <div class="span7 offset2"> <form name="loginForm" action="<?php echo site_url('admin/account/validate'); ?> " method="post" class="form-horizontal" autocomplete="off"> <div class="alert alert-<?php echo $errortype; ?> "> <?php echo $errormsg;
echo __('front_btn_login'); ?> </button> </div> </div> </form> </div> </div> </div> <?php } ?> <script type="text/javascript"> $(document).ready(function() { <?php if (mGlobal::getConfig('SHOW_INDEX')->configVal == 'no') { ?> window.location.href="<?php echo site_url('admin/account/login'); ?> "; location.href="<?php echo site_url('admin/account/login'); ?> "; <?php } ?> <?php if (file_exists(FCPATH . 'data' . DS . 'backgrounds' . DS . 'default_1.4.jpg')) {
echo implode(',', $regUserBar); ?> </div><?php } ?> <div class="clear"></div> </div> </div> <div class="span3"> <div class="box"> <h2><?php echo $totalFiles->total; ?> </h2> <span><?php echo __('dash_lbl_filesin', stripslashes(mGlobal::getConfig('PRODUCT_NAME')->configVal)); ?> </span> <?php if ($totalFilesBar != false) { ?> <div class="sparkline"><?php echo implode(',', $totalFilesBar); ?> </div><?php } ?> <div class="clear"></div> </div> </div> <div class="span3">
</a></li> <?php if (mGlobal::getConfig('SHOW_CATFOLDER')->configVal == 'category') { ?> <li class="<?php echo uri_is('admin/files/index'); ?> "><a href="<?php echo site_url('admin/files/index'); ?> "><?php echo __('sys_navi_files'); ?> </a></li> <?php } elseif (mGlobal::getConfig('SHOW_CATFOLDER')->configVal == 'folder') { ?> <li class="<?php echo uri_is('admin/folder/index'); ?> "><a href="<?php echo site_url('admin/folder/index'); ?> "><?php echo __('sys_navi_files'); ?> </a></li> <?php } else { ?> <li class="dropdown">
public function validateCenterLogin() { if (mGlobal::getConfig('SHOW_CENTRAL_LOGIN')->configVal == 'yes') { $_query = 'SELECT * FROM {TRANS}user WHERE emailAddress = "' . $this->input->post('inputEmail') . '" AND published = "1" AND password = "******" AND ( expire = 0 OR expire >= ' . time() . ' )'; $_found = $this->db->query($_query); if ($_found->num_rows() == 1) { return $_found->row(); } return false; } }