Example #1
0
function topics()
{
    global $themedir;
    global $globals, $mysql, $theme, $done, $errors;
    global $user;
    $theme['name'] = 'board';
    $theme['call_theme_func'] = 'board_theme';
    fheader($title = 'Start Board');
    $q = "SELECT * FROM `board` ";
    $qu = mysql_query($q);
    /*
     * 
    for($i =0; $i = mysql_fetch_assoc($qu); $i++)
    {
    	echo 'this: ii: ';
    	printrr($i);
    }
    */
    printrr($_POST);
    if (isset($_POST)) {
    }
}
Example #2
0
function key_finder($arr, $key)
{
    $pos = array();
    $new_v = array();
    foreach ($arr as $k => $v) {
        if ($k !== $key) {
            echo $k . ': ' . $v;
            printrr($v);
            $new_v[$v];
            //key_finder($v, $key);
        } else {
            continue;
        }
    }
    return $new_v;
    //	$shop[] = $pos;
    //	printrr($shop);
}
Example #3
0
include_once 'config.php';
include_once $rootdir . '/functions/func.php';
include_once $rootdir . '/functions/dbconn.php';
// TESTING
printrr(session_id());
echo '<a href="/index2.php">index2</a>';
// TESTING
// connecting to db
dbconn();
// globals
// global $globals, $error, $l;
// cant be echoing errors here
if (!empty($error)) {
    echo '<br >';
    echo 'Index, Errors: ';
    printrr($error);
}
// including header and footer and navigation bar themes
include_once $rootdir . '/hnf.php';
/*
if(isset($_GET['action']))
{
	fheader($title = ucfirst($_GET['action']));	
}
else
{
	fheader($title = 'MainBoard');	
}
*/
// fheader($title = 'Mainboard');
// fnav();
Example #4
0
 function test()
 {
     $arr = array(1, 2, 3);
     printrr($arr);
 }