Server : LiteSpeed
System : Linux terra.hostitbro.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : outerorb ( 1091)
PHP Version : 8.1.34
Disable Function : mail
Directory :  /home2/outerorb/zapnix.co/include/

📁 Create New:
⬆️ Upload File:
Current Dir [ Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

📄 File: config.php

Path: /home2/outerorb/zapnix.co/include/config.php

Size: 2.56 KB

Permissions: 0644

<?php

if (in_array($_SERVER['HTTP_HOST'], ['localhost', 'zapnix.co.test'])) {
	// Settings for local midas server do not edit here
	// database settings
	$ARR_CFGS["db_host"] = 'localhost';
	$ARR_CFGS["db_name"] = 'trhiaymy_zapnix_DB';
	$ARR_CFGS["db_user"] = 'root';
	$ARR_CFGS["db_pass"] = '';
	define('SITE_SUB_PATH', 'Zapnix');
}
else {
	// Settings for live server edit whenever shifting site to different server
	// database settings af$rT45
	$ARR_CFGS["db_host"] = 'localhost';
	$ARR_CFGS["db_name"] = 'outerorb_zapnixNewDB';
	$ARR_CFGS["db_user"] = 'outerorb_zapnixUser';
	$ARR_CFGS["db_pass"] = '7-Y;#cU(]C.7';
	define('SITE_SUB_PATH', 'Zapnix');
};

    $dbconn = new mysqli($ARR_CFGS["db_host"], $ARR_CFGS["db_user"], $ARR_CFGS["db_pass"],$ARR_CFGS["db_name"]);
    $GLOBALS['dbconn']=$dbconn;
    if($dbconn->connect_error) {
        die("Could not connect to database. Please check configuration and ensure MySQL is running.");
    }

if ($_SERVER['HTTP_HOST'] == "zapnix.co.test") {
	define('site_url', 'http://zapnix.co.test');
	define('admin_url', 'http://zapnix.co.test/admin/');
	define('theme_url', 'http://zapnix.co.test/assets/');
	define('upload_url', 'http://zapnix.co.test/uploaded-files/');
	define('NO_IMG_URL', 'http://zapnix.co.test/zapnix/assets/img/no-image.jpg');
}
elseif ($_SERVER['HTTP_HOST'] == "localhost") {
	define('site_url', 'http://localhost/zapnix.co');
	define('admin_url', 'http://localhost/zapnix.co/admin/');
	define('theme_url', 'http://localhost/zapnix.co/assets/');
	define('upload_url', 'http://localhost/zapnix.co/uploaded-files/');
	define('NO_IMG_URL', 'http://localhost/zapnix.co/zapnix/assets/img/no-image.jpg');
}
else {
	define('site_url', 'https://www.zapnix.co');
	define('admin_url', 'https://www.zapnix.co/admin/');
	define('theme_url', 'https://www.zapnix.co/assets/');
	define('upload_url', 'https://www.zapnix.co/uploaded-files/');
	define('NO_IMG_URL', 'https://www.zapnix.co/zapnix/assets/img/no-image.jpg');
}
define('SITE_ADMIN_URL',site_url."/admin");
define('ADMIN_DIR', 'admin');
define('COMPANY', "Zapnix");
define('SITE_KEY', '6LeE-8wqAAAAAFlA2ejSySh6WGF3OzPqMgR3EnAt');
define('SECRET_KEY', '6LeE-8wqAAAAAL8mgRP2hdHuKK2-iW3NVl4x5JCt');
//smtp 

// define('MAIL_HOST','smtp.gmail.com');
// define('MAIL_ID','outerorbittechnologies@gmail.com');
// define('MAIL_PASSWORD','xznpyivdkojkznhz');

define('MAIL_HOST','mail.outerorbittech.com');
define('MAIL_ID','sales@zapnix.co');
define('MAIL_PASSWORD','Promotions@1234');

$_GLOBALS['pgsize_arr']=array("1","5","10","25","50","100");
?>

← Back to Directory Edit File 🔒 Chmod

WP File Manager