i/qss.php
by webproger on 2023-09-21
ᐥqss() access permissionᐥ
<?php
function qss($i) {
    global $p_link;
    $q = "SELECT * FROM qix WHERE ix=".$i;
    $r = mysql_query($q,$p_link);
    $a = mysql_fetch_array($r);
    if($a['iy']==$_SESSION['s_login']) {
        return true;
    }elseif($a['oc']=='c') {
        return false;
    } elseif($a['oc']=='g' AND !qslt('grp','COUNT(*)','gp',$a['iy'],'iy',$_SESSION['s_login'])) {
        return false;
    } else {
        if($a['pt']) {
            return qss($a['pt']);
        } else {
            return true;
        }
    }
}
function Q_accss($i) { return qss($i); }
?>