This is what I have as far as the php file is concerned. It's wrong, but it's a start - I think. I also have made two templates which I can post if they would help.
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'GTList');
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// pre-cache templates used by all actions
$globaltemplates = array(
'GTLIST'
'GT_listbit
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
########################################################################
$users = $DB_site->query("
SELECT user.*,usertextfield.*,userfield.*, user.userid, options,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
$GT = $DB_site->query("SELECT user.userid, user.username, usertextfield.userid, usertextfield.field5 FROM users, usertextfield WHERE user.userid == usertextfield.userid ORDER BY user.username DESC");
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###
while($row=mysql_fetch_object($GT))
{
$who = $row->username;
$gtname = $row->field5;
eval('$gtbit = "' . fetch_template('GT_listbit') . '";');
}
eval('print_output("' . fetch_template('GTLIST') . '");');
eval('$navbar = "' . fetch_template('navbar') . '";');
I'm pretty sure this is disorganized and somethings are incorrectly placed, but I am new to this and have very little idea of where things go.
Please help! Thanks.
edited - made some changes but not fixed