Beispiel #1
0
} else {
    if ($_SESSION['aastatus'] == "exe") {
        $urlsallowed = $numurltrackersExe;
    } else {
        if ($_SESSION['aastatus'] == "mem") {
            $urlsallowed = $numurltrackersMem;
        }
    }
}
if ($db->rows > $urlsallowed - 1) {
    $notValid = urlencode("ERROR:  You are allowed only {$urlsallowed} url trackers.");
    header("Location: main.php?option=urltrackers&notValid={$notValid}");
    exit;
}
if ($db->rows) {
    $db->Seek(0);
}
// Find first open url id position
if ($db->rows) {
    $num = $urlsallowed + 1;
    for ($i = 1; $i < $num; $i++) {
        $urlIDs = $db->FetchRow();
        if (strcmp($urlIDs[2], $i)) {
            $urlID = $i;
            break;
        }
    }
    if ($i < $urlsallowed) {
        $urlID = $i;
    }
} else {