Exemplo n.º 1
0
          <a href="<?php 
echo SITE_URL;
?>
help/" title="FAQ">FAQ</a><br/>
          <a href="<?php 
echo SITE_URL;
?>
/blog/" title="Blog" >Blog</a><br/> 
        </li>
-->
		<li>
		<?php 
require_once DIR_FS . 'includes/functions/dbconn.php';
require_once DIR_FS . 'includes/functions/functions.php';
$con = new DBconn();
$con->connect(SITE_DB_HOST, SITE_DB_NAME, SITE_DB_USER, SITE_DB_PASS);
if (!isset($links1)) {
    $links1 = '';
}
if (!isset($links2)) {
    $links2 = '';
}
$selectQuery = $con->recordselect("SELECT * from content");
if (mysql_num_rows($selectQuery) > 0) {
    while ($cms_arr = mysql_fetch_assoc($selectQuery)) {
        $column = $cms_arr['column'];
        if ($column == 1) {
            $href = SITE_URL . 'content/' . $cms_arr['id'] . '/' . Slug($cms_arr['title']) . '/';
            $links1 .= "<a title='" . ucfirst($cms_arr['title']) . "' href='" . $href . "'><span class='footerblack'>" . $cms_arr['title'] . "</span></a><br/>";
        } elseif ($column == 2) {
            $href = SITE_URL . 'content/' . $cms_arr['id'] . '/' . Slug($cms_arr['title']) . '/';
Exemplo n.º 2
0
    } else {
        if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'redirUrl=') !== false) {
            if (substr($c_url, -15, 15) == 'loginsignup.php') {
                // dealing (likely) with posted login form
                $x = strpos($_SERVER['HTTP_REFERER'], 'redirUrl=');
                $c_url = urldecode(substr($_SERVER['HTTP_REFERER'], $x + 9));
            }
        }
    }
    if (strpos($login_url, '?') > 0) {
        $login_url .= "&parentUrl=" . $c_url;
    } else {
        $login_url .= "?parentUrl=" . $c_url;
    }
    //wrtlog("new login url=$login_url");
    //wrtlog("-------------------------------------");
}
/*echo "<script type='text/javascript'>var application_path='$base_url';</script>";*/
require_once DIR_FUN . 'dbconn.php';
global $con;
$con = new DBconn();
$con->connect($db_host, $db_name, $db_user, $db_pass);
// Front side panel variable declare
$left_panel = true;
$right_panel = true;
$cont_mid_cl = '';
// If both panel false then '-100' value OR If only one panel false then '-75' value
//require_once(DIR_INC.'db_const.php');
require_once DIR_FUN . 'validation.class.php';
require_once DIR_INC . "adminmessage.php";
//require_once(DIR_FUN.'function.php');