예제 #1
0
            $u_ID = $_SESSION['u_ID'];
            $xploded_u_email = $_SESSION['xploded_u_email'];
            $u_email = $_SESSION['u_email'];
            $u_name = $_SESSION['u_name'];
            $flag_options = "logged";
            include 'infogiver.php';
            $tumb_array = tumb();
            $admin_array = admin("true");
            $nav = navbar_info();
        }
    }
    include_once "infogiver.php";
    $config['topic_id'] = intval($_GET['topic']);
    $config['start'] = -10;
    $config['end'] = 0;
    if ($topic_array = topic_info_single_non($config)) {
        //print_r($topic_array);
    } else {
        if ($topic_array[0]['topic_id'] == '') {
            header("location:404.html");
        }
    }
}
?>
         <div id="splash"></div>
            <div id="navbar">
            	<div class="fc_navbar">
                	<img src="../../mydata/pics/fireconvers_navbar.png" id="fc_logo" width="201.6" height="31.8" alt="fireconverse">
                </div>
                        <div class="options_navbar_outer">
                            <div class="options_navbar_inner">
예제 #2
0
                $json_temp['t_date'] = $date;
                $json_temp['data'] = $data;
                $json_temp['likes'] = $likes_no;
                $json_temp['dislikes'] = $dislikes_no;
                $json_temp['liked'] = $liked;
                $json_temp['liked_id'] = $liked_id;
                $json_temp['responses'] = $res_array;
                array_push($json, $json_temp);
            }
        }
        return $json;
    }
}
if (isset($_POST['flag'])) {
    if ($_POST['flag'] == 'topic_info_single' && $_POST['configaration']) {
        return json_encode(topic_info_single_non($_POST['configaration']));
    }
}
//functions
function tumb_others($other_ID)
{
    if ($other_ID) {
        $stmt_tumb = $GLOBALS['mysqli']->prepare("SELECT `tumb_realavatar` FROM `fireconverse`.`meminfo` WHERE `ID`='" . $other_ID . "'");
        if ($stmt_tumb) {
            $stmt_tumb->execute();
            $stmt_tumb->store_result();
            $stmt_tumb->bind_result($tumb);
            $stmt_tumb->fetch();
            if ($tumb) {
                return $tumb;
            } else {