Blame Scripts/CentOS-Web/admin/p_categories.php

1f953a
1f953a
//--------------------/* Show error if called directly */
1f953a
1f953a
    if ( basename($_SERVER['PHP_SELF']) <> 'index.php')
1f953a
    {
1f953a
        echo '

Sorry, this page can\'t be served directly. ';

1f953a
        echo 'Try this instead.';
1f953a
        exit;
1f953a
    }
1f953a
1f953a
//----- Admin categories
1f953a
1f953a
    $message = admin_categories();
1f953a
1f953a
//----- Get Row
1f953a
1f953a
    $sql_string = "SELECT id, name, parent, description FROM categories ORDER BY name;";
1f953a
    $rows = $db->query( $sql_string );
1f953a
1f953a
//----- Show action results
1f953a
1f953a
    if ( isset( $message ) )
1f953a
    {
1f953a
        echo $message; 
1f953a
    }
1f953a
?>
1f953a
1f953a
1f953a
1f953a

1f953a
1f953a

1f953a
1f953a