Instaliram neku skriptu na sajtu pa ovaj deo bas ne razumem.
Treba da ubacim neki kod ispred /head i /body tagova. Svi fajlovi su u .php formatu.
Jedan kod sam ubacio u header.php ispred /head taga, drugi u footer.php ispred /body taga i skripta funkcionise, al onda ne funkcionisu neke druge stvari na sajtu, npr. padajuci meni.
Pa ocigledno nesto pogresno radim.
Evo koda koji treba pre /head taga da ide
<!-- ClickJack Script -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript">
function ClickJackFbHide(){
jQuery("div[id^=\'clickjack-button-wrapper\']").hide();
}
function ClickJackFbShow(){
jQuery("div[id^=\'clickjack-button-wrapper\']").show();
}
</script>
a evo ga header.php
<?
define('BASEPATH', true);
include('inc/config.php');
if($site['maintenance'] > 0){redirect('maintenance');}
if($_GET['ref'] != ""){setcookie("PlusREF", $db->EscapeString($_GET['ref']), time()+3600);}
if(isset($_POST['logare'])) {
$name = $db->EscapeString($_POST['login']);
$pass = $db->EscapeString($_POST['pass']);
$ltype = ($site['reg_logtype'] == 1 ? '`email`' : '`login`');
$sql = $db->Query("SELECT id,login,banned,activate FROM `users` WHERE ".$ltype."='".$name."' AND `pass`=MD5('".$pass."')");
$data = $db->FetchArray($sql);
if($data['banned'] > 0){
$errMsg = "GREŠKA: Tvoj nalog je banovan!";
}elseif($data['activate'] > 0){
$errMsg = "GREŠKA: Moraš da potvrdiš tvoj mail prvo!";
}elseif($data['id'] != '') {
$db->Query("UPDATE `users` SET `online`=NOW() WHERE `login`='".$data['login']."'");
$_SESSION['EX_login'] = $data['login'];
redirect('index.php');
}else{
$errMsg = "GREŠKA: Username ili šifra je pogrešna!";
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><title><?=$site['site_name']?></title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="description" content="<?=$site['site_description']?>" />
<meta name="keywords" content="coins, click, earn, facebook, like, google, +1, plus, one, exchange, clicks, twitter, google +1, like exchange, follow exchange, facebook fans" />
<link rel="stylesheet" href="js/uniform/css/uniform.default.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="stylesheet" href="css/blue.css" type="text/css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie.css" />
<![endif]-->
<!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="css/ltie8.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie7.css" />
<![endif]-->
<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.14.custom.min.js"></script>
<script type="text/javascript" src="js/jdpicker/jquery.jdpicker.js"></script>
<script type="text/javascript" src="js/uniform/jquery.uniform.min.js"></script>
<script type="text/javascript" src="js/jquery.hotkeys.js"></script>
<script type="text/javascript" src="js/visualize/visualize.jQuery.js"></script>
<script type="text/javascript" src="js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script type="text/javascript" src="js/jwysiwyg/jquery.wysiwyg.js"></script>
<script src="js/jquery.tables.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<!-- TU SAM GA UBACIO BIO -->
</head>
<body>
<div class="cont soft-blue fixed">
<div class="menu">
<div class="menu-wrap">
<div class="logo">
<a href="<?=$site['site_url']?>"><img src="./img/logo_black.png" alt="logo"/></a>
</div>
<ul id="main_menu">
<li><a href="index.php">Početna</a></li>
<?if(!$is_online){?>
<?if($site['reg_status'] == 0){?><li><a href="register.php">Registruj se</a></li><?}?>
</ul>
<?}else{?>
<li>
<a href="#">Zaradi novčiće</a>
<ul>
<li><a href="facebook.php">Facebook</a></li>
<li><a href="twitter.php">Twitter</a></li>
<li><a href="digg.php">Digg</a></li>
<li><a href="google.php">Google</a></li>
<li><a href="youtube.php">Youtube</a></li>
<li><a href="surf.php" target="_blank">Vebsajt-Surf</a></li>
</ul>
</li>
<li><a href="stats.php">Statistika Sajta</a></li>
</ul>
<div class="login">
<span class="no"><?=$data['coins']?></span>
<span class="ico"> </span>
<div class="details">
<div class="top">
<img src="img/login.jpg" alt="user" />
<div class="line name">
<?=$data['login']?>
</div>
<div class="line email">
<?=$data['email']?>
</div>
<div class="line">
Novčića: <?=$data['coins']?>
</div>
<div class="bbg"> </div>
</div>
<div class="bottom">
<div class="line">
<a href="edit_acc.php">Izmeni nalog</a>
</div>
<div class="line">
<a href="vip.php">Postani VIP</a>
</div>
<div class="line">
<a href="logout.php">Izloguj se</a>
</div>
</div>
</div>
</div><?}?>
</div>
</div>
<div class="wrapper">
<div class="sidebar left">
<?if($is_online){?>
<div class="block">
<div class="top">
<h2>Glavni Meni</h2>
<a href="#" class="toggle"> </a>
</div>
<div class="content">
<ul>
<li><a href="buy.php"><img src="img/ico5_15.png" height="18" border="0" /> Kupi Novčiće</a></li>
<li><a href="vip.php"><img src="img/premium.png" height="18" border="0" /> Unapredi se u VIP</a></li>
<li><a href="addurl.php"><img src="img/ico6_15.png" height="18" border="0" /> Dodaj sajt</a></li>
<li><a href="mysites.php"><img src="img/ico7_15.png" height="18" border="0" /> Moji sajtovi</a></a></li>
<li><a href="twitterconfig.php"><img src="img/ico12_15.png" height="18" border="0" /> Twitter Nalog</a></a></li>
<li><a href="diggconfig.php"><img src="img/digg.png" height="18" border="0" /> Digg Nalog</a></a></li>
<li><a href="coupons.php"><img src="img/coupon.png" height="18" border="0" /> Iskoristi Kupon</a></li>
<li><a href="refer.php"><img src="img/ico8_15.png" height="18" border="0" /> Promoviši Sajt</a></li>
</ul>
</div>
</div>
<div class="block">
<div class="top">
<h2>Trenutno Novčića</h2>
<a href="#" class="toggle"> </a>
</div>
<div class="content">
<div class="coins" id="currentpoints"><?=$data['coins']?></div>
</div>
</div>
<?}else{?>
<div class="block">
<div class="top">
<h2>Uloguj se na sajt</h2>
<a href="#" class="toggle"> </a>
</div>
<div class="content text">
<form method="post">
<fieldset>
<p>
<label><?=($site['reg_logtype'] == 1 ? 'E-mail' : 'Username')?></label><br/>
<input class="text big" type="<?=($site['reg_logtype'] == 1 ? 'email' : 'text')?>" value="" name="login" required="required" />
</p>
<p>
<label>Šifra</label> <br/>
<input class="password" type="password" value="" name="pass" required="required" />
</p>
<p>
<input type="submit" class="button gray small" name="logare" value="Login" />
</p>
</fieldset>
</form>
</div>
</div>
<?}?>
</div>
<?=($errMsg != '' ? '<b><font color="red">'.$errMsg.'</font></b><br /><br />' : '')?>
Kako i gde to ubaciti ?
|