示例#1
0
function adminMain_theme()
{
    global $globals, $mysql, $theme, $done, $errors;
    global $user;
    global $q, $l;
    if ($errors) {
        error_handler($errors);
        return false;
    }
    echo 'Welcome to the Admin Section...! Still Work in Progress...';
    echbr(2);
    echo '<a href="index.php?action=listUsers">' . $l['l_users'] . '</a>';
}
示例#2
0
        header("Location: install.php?step=3");
        exit(0);
    }
}
if (isset($_GET['step']) && $_GET['step'] == 2) {
    include 'config.php';
    global $globals;
    echo '
	<b>Please set the Admin information: </b>
	<br />
	<br />
	<form action="" method="post">
	Admin-Username: <br />
	<input type="text" name="adminuser" id="adminuser">
	<br />
	Admin-Pass: <br />
	<input type="password" name="adminpass" id="adminpass">
	<br />
	Admin-Email: <br />
	<input type="text" name="adminemail" id="adminemail"><br />
	<br />
	<input type="submit" value="Next >>" name="admin_set">
	</form>
	';
}
if (isset($_GET['step']) && $_GET['step'] == 3) {
    echo 'Installation completed, you can now go to the 
	<a href="index.php">index</a> page.';
}
echbr(2);
ffooter();
示例#3
0
function topicReplies_theme()
{
    global $user;
    global $board, $replies;
    global $qu;
    global $board;
    echo '<a href="index.php?action=addReply&topic=' . $_GET['topic'] . '">add reply</a>';
    echbr(2);
    echo '
		<table border="1" width="90%">
			<tr>
				<td>Reply No.</td>
				<td>Subject </td>
				<td> Body </td>
				<td>Date </td>
				<td>User Ip </td>
			</tr>
			';
    // echo date("g:i a d-F-Y", time() );
    while ($i = mysql_fetch_assoc($qu)) {
        echo '
			<tr>
				<td>' . $i['rid'] . '</td>
				<td>' . $i['rsubject'] . '</td>
				<td>(if we hav permision only then show, no-eidting button)<p align="right">edit</p>' . $i['rbody'] . '</td>
				<td>' . date("g:i a d-F-Y", $i['date']) . '</td>
				<td>' . $i['user_ip'] . '</td>
			</tr>
			';
    }
    echo '
		</table>
		';
}
示例#4
0
function topicReplies_theme()
{
    global $user;
    global $board, $replies;
    global $qu;
    global $board;
    global $l;
    echo '<a href="index.php?action=addReply&topic=' . $_GET['topic'] . '">add reply</a>';
    echbr(2);
    $row = mysql_fetch_assoc($qu[1]);
    /*
    echo '<center>';
    echo "<b>$l[t_name]: " . $row['tname'] . '</b><br /><br />';
    
    echo '
    	<table border="1" width="90%">
    		<tr id="disp_table">
    			<td width="20%">'.$l['bcreatedby'].'</td>
    			<td width="60%">'.$l['desc'].'</td>
    			<td width="10%">'.$l['date'].'</td>
    		</tr>
    		';
    		
    echo '
    		<tr>
    			<td>'.$row['tcreatedby'].'</td>
    			<td>'.$row['tdesc'].'</td>
    			<td>'.$row['tdate'].'</td>
    		</tr>
    ';
    
    echo '
    	</table>
    	';
    
    echo '
    	<table border="1" width="90%">
    		<tr id="disp_table">
    			<td width="20%">'.$l['rep_by'].'</td>
    			<td width="60%">'.$l['body'].'</td>
    			<td width="60%">'.$l['date'].'</td>
    		</tr>
    		';
    
    // echo date("g:i a d-F-Y", time() );
    
    while( $i = mysql_fetch_assoc($qu[2]) )
    {
    	// (if we hav permision only then show, no-eidting button)<p align="right">edit</p>
    	echo '
    		<tr>
    			<td>'.$i['poster_users_uid'].'</td>
    			<td>'.'Subj: '.$i['rsubject'].'<br />Body: '.$i['rbody'].'<br />IP: '.$i['user_ip'].'</td>
    			<td>'.date("g:i a d-F-Y", $i['date'] ).'</td>
    		</tr>
    		';
    }
    
    
    echo '
    	</table>
    	';
    
    echo '</center>';
    */
    $table = '';
    $table .= '<center>';
    $table .= "<b>{$l['t_name']}: " . $row['tname'] . '</b><br /><br />';
    //<th class="dt-header" width="20%">'.$l['bcreatedby'].'</th>
    $table .= '
		<table class="disp_table" id="disp_table" width="90%">
			<thead>
				<tr>
					<th class="dt-header" width="20%">' . $l['by'] . '</th>
					<th class="dt-header" width="60%">' . $l['desc'] . '</th>
					<th class="dt-header" width="10%">' . $l['date'] . '</th>
				</tr>
			</thead>
			';
    $cssTrClassNm = 'class="dth-wp_post-tr"';
    $cssTdClassNm = 'class="dth-wp_post"';
    $table .= '
			<tr ' . $cssTrClassNm . '>
				<td ' . $cssTdClassNm . '>' . $row['tcreatedby'] . '</td>
				<td ' . $cssTdClassNm . '>' . $row['tdesc'] . '</td>
				<td ' . $cssTdClassNm . '>' . $row['tdate'] . '</td>
			</tr>
	';
    /*
    $table .= '
    	</table>
    	';
    
    $table .= '
    	<table border="1" width="90%">
    		<tr id="disp_table">
    			<td width="20%">'.$l['rep_by'].'</td>
    			<td width="60%">'.$l['body'].'</td>
    			<td width="20%">'.$l['date'].'</td>
    		</tr>
    		';
    */
    // echo date("g:i a d-F-Y", time() );
    while ($i = mysql_fetch_assoc($qu[2])) {
        // (if we hav permision only then show, no-eidting button)<p align="right">edit</p>
        $table .= '
			<tr ' . $cssTrClassNm . '>
				<td ' . $cssTdClassNm . '>' . $i['poster_users_uid'] . '</td>
				<td ' . $cssTdClassNm . '>' . 'Subj: ' . $i['rsubject'] . '<br />Body: ' . $i['rbody'] . '<br />IP: ' . $i['user_ip'] . '</td>
				<td ' . $cssTdClassNm . '>' . date("g:i a d-F-Y", $i['date']) . '</td>
			</tr>
			';
    }
    $table .= '
		</table>
		';
    $table .= '</center>';
    echo $table;
}
示例#5
0
文件: index.php 项目: ashish2/resumer
    include_once $sourcedir . '/' . $actionarr[$_REQUEST['action']][0] . $php;
    return $actionarr[$_REQUEST['action']][1];
}
// func main ends
// Calling the Navigation bar, just before the theme file is loaded, and theme func is called below
fnav();
//echbr(3);
if (isset($theme['name'])) {
    include_once $globals['themedir'] . '/' . $user['theme_type'] . '/' . $theme['name'] . '_theme.php';
} else {
    //call default theme
}
if (isset($theme['call_theme_func'])) {
    $theme_func = $theme['call_theme_func'] . '_theme';
    call_user_func($theme_func);
    //call_user_func($theme['call_theme_func']);
} else {
    //call some default theme func
}
//printrr(get_included_files() );
echbr(3);
// stop time
$time->timer_stop();
ffooter($time->time_elapsed(6));
// Put session_destroy later
// session_destroy();
// echo "<br />all cook: <br />";
// printrr( $_COOKIE );
// printrr( $_SERVER);
// exit();
// printrr( get_included_files() );