inc/toolkit.inc.php
changeset 79 0c0aa144356a
parent 77 e55145eab223
child 82 c255196bc447
equal deleted inserted replaced
78:effde559e0e9 79:0c0aa144356a
    39 }
    39 }
    40 
    40 
    41 /*************
    41 /*************
    42  * Constants *
    42  * Constants *
    43  *************/
    43  *************/
    44 define(ROWAMOUNT, $ROWAMOUNT);
    44 define('ROWAMOUNT', $ROWAMOUNT);
    45 
    45 
    46 if (isset($_GET["start"])) {
    46 if (isset($_GET["start"])) {
    47    define(ROWSTART, (($_GET["start"] - 1) * ROWAMOUNT));
    47    define('ROWSTART', (($_GET["start"] - 1) * ROWAMOUNT));
    48    } else {
    48    } else {
    49    define(ROWSTART, 0);
    49    define('ROWSTART', 0);
    50 }
    50 }
    51 
    51 
    52 if (isset($_GET["letter"])) {
    52 if (isset($_GET["letter"])) {
    53    define(LETTERSTART, $_GET["letter"]);
    53    define('LETTERSTART', $_GET["letter"]);
    54    $_SESSION["letter"] = $_GET["letter"];
    54    $_SESSION["letter"] = $_GET["letter"];
    55 } elseif(isset($_SESSION["letter"])) {
    55 } elseif(isset($_SESSION["letter"])) {
    56    define(LETTERSTART, $_SESSION["letter"]);
    56    define('LETTERSTART', $_SESSION["letter"]);
    57 } else {
    57 } else {
    58    define(LETTERSTART, "a");
    58    define('LETTERSTART', "a");
    59 }
    59 }
    60 
    60 
    61 /* Database connection */
    61 /* Database connection */
    62 
    62 
    63 require_once("database.inc.php");
    63 require_once("database.inc.php");