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/public_html/inc/

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


OR Upload from URL:
URL: Save as:

📄 File: config.php

Path: /home2/outerorb/public_html/inc/config.php

Size: 4.54 KB

Permissions: 0666

<?php
// Configuration file for dynamic data

// ── Secure session (start once, non-CLI only) ─────────────────────────────
if (php_sapi_name() !== 'cli') {
    if (session_status() === PHP_SESSION_NONE) {
        session_set_cookie_params([
            'lifetime' => 0,
            'path'     => '/',
            'secure'   => (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off'),
            'httponly' => true,
            'samesite' => 'Strict',
        ]);
        session_start();
    }
    // CSRF token: generated once per session, reused across the session
    if (empty($_SESSION['csrf_token'])) {
        $_SESSION['csrf_token'] = bin2hex(random_bytes(32));
    }
    $csrf_token = $_SESSION['csrf_token'];
}

$company_name = "Outer Orbit Technologies";
// Auto-detect base URL so you don't need to change it when migrating the site.
// Falls back to '/' for CLI or when detection is not possible.
if (php_sapi_name() === 'cli' || empty($_SERVER['HTTP_HOST'])) {
    // CLI / cron / no HTTP context
    $base_url = "/";
} else {
    // Determine protocol
    $isHttps = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443);
    $protocol = $isHttps ? 'https' : 'http';
    $host = $_SERVER['HTTP_HOST'];

    // Try to compute relative path from document root to project root (parent of inc/)
    $docRoot = isset($_SERVER['DOCUMENT_ROOT']) ? realpath($_SERVER['DOCUMENT_ROOT']) : false;
    $projectRoot = realpath(__DIR__ . DIRECTORY_SEPARATOR . '..');

    if ($docRoot && $projectRoot && strpos($projectRoot, $docRoot) === 0) {
        $relative = str_replace('\\', '/', substr($projectRoot, strlen($docRoot)));
        $relative = '/' . trim($relative, '/');
        $relative = $relative === '/' ? '/' : $relative . '/';
    } else {
        // Fallback: derive path from script name (may include /inc/ so strip it)
        $scriptDir = dirname($_SERVER['SCRIPT_NAME']);
        // If script is in /inc, go up one level
        $maybeProject = preg_replace('#/inc/?$#', '', $scriptDir);
        $relative = $maybeProject === '' ? '/' : rtrim($maybeProject, '/') . '/';
    }

    $base_url = $protocol . '://' . $host . $relative;
}
$company_email = "info@outerorbittech.in";
$company_phone = "+918002909777";
$company_address = "C/O MIMEC Cable, 5th Floor, Plot No. 3/P, Namkum Industrial Area, Namkum Ranchi JH 834010";
$working_hours = "Working: 9.30am - 6.30pm";

$opening_hours = array(
    "Week Days" => "09.30 - 19.30",
    "Saturday" => "09:30 - 18.30",
    "Sunday" => "Day Off"
);

$social_links = array(
    "facebook" => array("url" => "https://www.facebook.com/outerorbittech", "icon" => "fa-facebook-f"),
    "twitter" => array("url" => "https://twitter.com/outerorbittech", "icon" => "fa-twitter"),
    "instagram" => array("url" => "https://www.instagram.com/outerorbittech", "icon" => "fa-instagram"),
    "linkedin" => array("url" => "https://www.linkedin.com/company/outer-orbit-technologies-pvt-ltd", "icon" => "fa-linkedin-in"),
    "whatsapp" => array("url" => "https://wa.me/918002909777", "icon" => "fa-whatsapp")
);

// Location-specific data
$locations = array(
    "ranchi" => array(
        "city" => "Ranchi",
        "state" => "Jharkhand",
        "company_line" => "Outer Orbit Technologies Pvt. Ltd.",
        "address" => "C/O MIMEC Cable, 5th Floor, Plot No. 3/P, Namkum Industrial Area, Namkum Ranchi JH 834010",
        "phone" => $company_phone,
        "email" => $company_email
    ),
    "kolkata" => array(
        "city" => "Kolkata",
        "state" => "West Bengal",
        "tag" => "Metro Hub • Eastern Regional Center",
        "address" => "EFC Ltd Millennium City, DN - 62, Sector - V, Salt Lake, Kolkata West Bengal – 700091",
        "phone" => $company_phone,
        "email" => $company_email,
        "color_from" => "#073367",
        "color_to" => "#0056b3"
    ),
    "bengaluru" => array(
        "city" => "Bengaluru",
        "state" => "Karnataka",
        "tag" => "Tech Capital • Innovation Center",
        "address" => "Brigade Tech Park, Whitefield, Pattandur Agrahara, Bengaluru, Karnataka - 560066",
        "phone" => $company_phone,
        "email" => $company_email,
        "color_from" => "#073367",
        "color_to" => "#0056b3"
    )
);

// Asset base derived from base_url — used to build asset paths that work on localhost or when deployed to a subpath
$asset_base = rtrim($base_url, '/');
?>


← Back to Directory Edit File 🔒 Chmod

WP File Manager