Example #1
0
                    $include_app = 'mobile';
                }
            }
        }
    }
}
// Special stuffs for Jappix apps?
if ($include_app == 'desktop' || $include_app == 'mobile') {
    // Redirects the user to HTTPS if forced
    if (!useHttps() && httpsForce()) {
        // Apply some special headers
        header('Status: 301 Moved Permanently', true, 301);
        header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
        // Kill the script!
        exit('HTTP/1.1 301 Moved Permanently');
    }
    // Is it a static node?
    if (isStatic()) {
        $include_app = 'static';
    }
    // Is it an upload node?
    if (isUpload()) {
        $include_app = 'upload';
    }
    // Save this visit (for the stats)
    if (hasStatistics()) {
        writeVisit();
    }
}
// Include it!
include './server/' . $include_app . '.php';
Example #2
0
    }
}
// Authorized and statistics page requested
if ($id == 1) {
    ?>
                <h3 class="statistics manager-images"><?php 
    _e("Statistics");
    ?>
</h3>
                
                <p><?php 
    _e("Basic statistics are processed by Jappix about some important things, you can find them below.");
    ?>
</p>
                <?php 
    if (!hasStatistics()) {
        ?>
                  <p><?php 
        _e("Statistics are currently disabled in the settings.");
        ?>
</p>
                <?php 
    } else {
        ?>
                <h4><?php 
        _e("Access statistics");
        ?>
</h4>
                
                <?php 
        // Read the visits values