<?php
session_start();
error_reporting(0);
include "timeout.php";
if($_SESSION[login]==1){
if(!cek_login()){
$_SESSION[login] = 0;
}
}
if($_SESSION[login]==0){
header('location:logout.php');
}
else{
if (empty($_SESSION['username']) AND empty($_SESSION['passuser']) AND $_SESSION['login']==0){
echo "<link href='style.css' rel='stylesheet' type='text/css'>
<center>Untuk mengakses modul, Anda harus login <br>";
echo "<a href=index.php><b>LOGIN</b></a></center>";
}
else{
?>
<html>
<head>
<title></title>
<script language="javascript" type="text/javascript">
tinyMCE_GZ.init({
plugins : 'style,layer,table,save,advhr,advimage, ...',
themes : 'simple,advanced',
languages : 'en',
disk_cache : true,
debug : false
});
</script>
<script language="javascript" type="text/javascript"
src="../tinymcpuk/tiny_mce_src.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "table,youtube,advhr,advimage,advlink,emotions,flash,searchreplace,paste,directionality,noneditable,contextmenu",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,preview,zoom,separator,forecolor,backcolor,liststyle",
theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator,youtube,separator",
theme_advanced_buttons3_add : "emotions,flash",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
extended_valid_elements : "hr[class|width|size|noshade]",
file_browser_callback : "fileBrowserCallBack",
paste_use_dialog : false,
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;",
apply_source_formatting : true
});
function fileBrowserCallBack(field_name, url, type, win) {
var connector = "../../filemanager/browser.html?Connector=connectors/php/connector.php";
var enableAutoTypeSelection = true;
var cType;
tinymcpuk_field = field_name;
tinymcpuk = win;
switch (type) {
case "image":
cType = "Image";
break;
case "flash":
cType = "Flash";
break;
case "file":
cType = "File";
break;
}
if (enableAutoTypeSelection && cType) {
connector += "&Type=" + cType;
}
window.open(connector, "tinymcpuk", "modal,width=600,height=400");
}
</script>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function disableRightClick()
{
alert("sorry can't right click");
return false;
}
</script>
</head>
<body oncontextmenu= "return disableRightClick();">
<?php if ($_SESSION['leveluser']=='user'){ ?>
<div id="header">
<div id="menu">
<ul>
<li><a href='?rajaampat'=info><img src="icon/globe.ico" border="0px" width="12px" height="13px" /> Home</a></li>
<?php include "menu.php"; ?>
<li><a href=logout.php><img src="icon/globe.ico" border="0px" width="12px" height="13px" /> Logout</a></li>
</ul>
<p> </p>
</div>
<div id="content">
<?php include "content.php"; ?>
</div>
</div>
<?php }elseif ($_SESSION['leveluser']=='admin'){ ?>
<div id="header">
<div id="menu">
<ul>
<li><a href='?rajaampat'=info><img src="icon/globe.ico" border="0px" width="12px" height="13px" /> Home</a></li>
<?php include "menu2.php"; ?>
<li><a href=logout.php><img src="icon/globe.ico" border="0px" width="12px" height="13px" /> Logout</a></li>
</ul>
<p> </p>
</div>
<div id="content">
<?php include "content2.php"; ?>
</div>
</div>
<?php }else { ?>
<p><b>MAAF ANDA HARUS LOG IN do e</b></p>
<?php } ?>
<div id="footer">
Copyright © 2014 Kominfo Raja Ampat All rights reserved.
</div>
</body>
</html>
<?php
}
?>
已经尝试了很多东西,
ive扫描了此代码,但一无所获
是php语法还是什么?
我尝试关闭任何未关闭的语法,但仍然收到此错误:
解析错误:语法错误,文件中的意外结尾 C:\ xampp \ htdocs \ WEB RAJA 139行的AMPAT \ homedir \ public_html \ myadmin \ administrator \ media.php