Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Useful Mods

2010-03-23
2013-05-17
  • I added this to the top of the index.php file.
    It allows me to use my site login script to control access to the Quix system.

    <<<<<<<

    <?php

    // START MOD

    echo session_id();
    // Start the session. Set the session to expire in 1 minute for added security
    session_cache_expire(10);
    $cache_expire = session_cache_expire();
    session_start();
    if(!$_SESSION) {
    // If is not logged in - User = Guest, Userlevel = 0
    header("location:http://".$_SERVER);
    } else {
    // If is logged in - User = session, userlevel = session
    foreach($_SESSION as $k => $v) {
    $userdata = $k;
    }
    $username = $userdata;
    $userlevel = $userdata;
    $referer = $userdata;
    }

    if($userlevel<5) // Admin user level is bigger than 5
       header("location:http://".$_SERVER."/login/guest/".$referer);

    // END OF MOD

    /*----------------------------------------------------
         The contents of this file are subject to the Mozilla Public License
         Version 1.1 (the "License"); you may not use this file except in
         compliance with the License. You may obtain a copy of the License at
         http://www.mozilla.org/MPL/

         Software distributed under the License is distributed on an "AS IS"……….

    >>>>>>>

     
  • This is an awesome CMS system btw!
    A big congrats to the developer(s) :P