Location: PHPKode > projects > Pratt Content-Management-System (CMS) > prattcms/variables/admin_pages.var.php
This file is (C) Copyright 2003 by the Pratt Museum and licensed under the GPL.
Please see the README for details.

File: $root/variables/admin_pages.var.php
Description: variables from the admin_pages table
Notes: This file is currently being used for a prototype for the calendar of events
	page to see if this project will take off.

//sql id is the id in the db
$sql_id = $global_var_id+1;

//the SQL query for page info for the admin side
$admin_sql = "SELECT * FROM admin_pages WHERE id='" . $sql_id . "'";

//run the query
$admin_query = $db->getAll($admin_sql);
//error handling again
if (DB::iserror($admin_query)) {
	$error = new Error;

we now set all the variables...
this uses the parse_str function. We first
  create a string name_col=description_col
  it then sets name_col as a variable with
  the value of description_col.

foreach ($admin_query as $value) {
	$string = "id=" . $value[3];
	$title_string = "id=" . $value[2];

//the variable that contains the filename to include
$include_admin_file = $admn_pg['id'];
$admin_title = $admn_title['id'];

//this is so we always have acess to the database, but not in normal pages, just admins
$_SESSION['db_string'] = $database_string;

Return current item: Pratt Content-Management-System (CMS)