Jump to content

loginnet

Members
  • Posts

    5
  • Joined

  • Last visited

About loginnet

  • Birthday 10/08/1994

Contact Methods

  • Website URL
    http://www.lnhost.co.cc
  • ICQ
    0

Profile Information

  • Gender
    Male
  • Location
    Belgium

loginnet's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I think I know what the problem is: The PHP script is requested, Apache passes the file to the PHP parser. But the CPU is overloaded and postpones the parsing of the file. The parser doesn't respond to Apache, so Apache thinks PHP doesn't exist and it sends an 500 error. Some time ago the load even was 7!
  2. <? include('lang/set.php'); include('inc/sitemgmt/session.php'); if(!$session->logged_in) {header('HTTP/1.1 401 Unauthorized'); include('inc/initsql.php'); $sql="INSERT INTO serv_log VALUES(NULL,'401',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Control panel access denied')"; mysql_query($sql); mysql_close(); $next=str_replace("&","+",str_replace("=","-",$_SERVER['QUERY_STRING'])); header('Location: login.php?small&next='.$next); exit; } if(isset($_GET['proxy'])) { header('Location: http://proxy.lnhost.co.cc'); echo "<a href='http://proxy.lnhost.co.cc'>Naar de proxy</a>"; exit; } if(isset($_GET['control'])) { $control=$_GET['control']; if($control=="userinfo") { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head><title>Account</title></head><body> <? include('inc/initsql.php'); /* Requested Username error checking */ $req_user = trim($_GET['user']); if(!$req_user || strlen($req_user) == 0 || !eregi("^([0-9a-z])+$", $req_user) || !$database->usernameTaken($req_user)){ die("<p>".T_USER_AAC_E_T1." '".$req_user."' ".T_USER_AAC_E_T2."</p>"); } ?><? /* Logged in user viewing own account */ if($session->username==$req_user) {$own_account=true;} else{$own_account=false;} /* Display requested user information */ $req_user_info = $database->getUserInfo($req_user); ?><p><b><? echo T_USER_USERNAME; ?>:</b> <? echo $req_user; ?><br><? /* Email */ if($own_account) { ?> <b> <? echo T_USER_AAC_MAIL; ?>:</b> <? echo $req_user_info["email"]; ?><br><? } /* GUI-style */ if($req_user_info["gui"]=="dos"){ $req_user_info["gui"]=T_USER_AAC_GUI_STD; } if($req_user_info["gui"]=="win2000"){ $req_user_info["gui"]="Windows 2000"; } if($req_user_info["gui"]=="xp"){ $req_user_info["gui"]="Windows XP"; } if($req_user_info["gui"]=="vista_basic"){ $req_user_info["gui"]="Windows Vista Basic"; } if($req_user_info["gui"]=="vista_aero"){ $req_user_info["gui"]="Windows Vista Aero"; } echo "<b>".T_USER_AAC_GUI.":</b> ".$req_user_info["gui"]."<br>"; echo "<b>Afbeelding: </b> <img src='".$req_user_info['image']."'><br>"; /** * Note: when you add your own fields to the users table * to hold more information, like homepage, location, etc. * they can be easily accessed by the user info array. * * $session->userinfo["location"]; (for logged in users) * * ..and for this page, * * $req_user_info["location"]; (for any user) */ /* If logged in user viewing own account, give link to edit */ if($own_account){ echo "<br><a href=\"?control=useredit\">".T_USER_ACCOUNT_TITLE."</a>"; } ?> </p> </body></html> <? } else if($control=="useredit") { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><title>Gebruiker bewerken</title></head> <body> <? include("inc/initsql.php"); ?><html><head><style type="text/css"> .defaultimage {float: right; height: 70px; width: 70px; border:1px white solid;}</style><meta http-equiv="content-type" content="text/html; charset=utf-8"><title><? echo $pgname ?></title><link href="http://static.lnhost.co.cc/alert/alert.css.php?ui=<? if(!$session->logged_in) { echo SITE_ALERTGUI; } else {echo $session->userinfo['gui'];} ?>" rel="stylesheet" type="text/css"><script language="JavaScript" src="http://static.lnhost.co.cc/alert/alert.js.php?ui=<? if(!$session->logged_in) { echo SITE_ALERTGUI; } else {echo $session->userinfo['gui'];} ?>" type="text/javascript"></script></head><body> <? if(isset($_SESSION['useredit'])) { unset($_SESSION['useredit']);?> <p>Je account is bewerkt.</p> <? } if($form->num_errors > 0){ echo "<font size=\"2\" color=\"#ff0000\">".$form->num_errors." fouten gevonden</font>"; } ?> <form action="inc/sitemgmt/process.php" method="POST" name="pass"><fieldset> <? echo T_USER_ACCOUNT_CP ?>:<input type="password" name="curpass" maxlength="30" value=" <?echo $form->value("curpass"); ?>" class="textfield"><? echo $form->error("curpass"); ?> <br> <? echo T_USER_ACCOUNT_NP ?>:<input type="password" name="newpass" maxlength="30" value=" <? echo $form->value("newpass"); ?>" class="textfield"><? echo $form->error("newpass"); ?> <input type="hidden" name="subpass" value="1"><br> <input type="submit" value="<? echo T_USER_ACCOUNT_SUBMIT ?>" class="button"></fieldset> </form> <br> <form action="inc/sitemgmt/process.php" method="POST" name="settings"><fieldset> <div style="border: 1px black dashed; width: 161px; float: right; height: 200px; overflow: scroll; overflow-x: auto; scrollbar-base-color: black;" > <img src="http://static.lnhost.co.cc/panel/user/user.png" title="Afbeelding kiezen" onclick="document.settings.image.focus(); document.settings.image.value=this.src; document.settings.image.blur()" class="defaultimage"> <img src="http://static.lnhost.co.cc/panel/user/usertile2.png" title="Afbeelding kiezen" onclick="document.settings.image.focus(); document.settings.image.value=this.src; document.settings.image.blur()" class="defaultimage"> <img src="http://static.lnhost.co.cc/panel/user/usertile3.png" title="Afbeelding kiezen" onclick="document.settings.image.focus(); document.settings.image.value=this.src; document.settings.image.blur()" class="defaultimage"> <img src="http://static.lnhost.co.cc/panel/user/usertile4.png" title="Afbeelding kiezen" onclick="document.settings.image.focus(); document.settings.image.value=this.src; document.settings.image.blur()" class="defaultimage"> <img src="http://static.lnhost.co.cc/panel/user/usertile5.png" title="Afbeelding kiezen" onclick="document.settings.image.focus(); document.settings.image.value=this.src; document.settings.image.blur()" class="defaultimage"> <img src="http://static.lnhost.co.cc/panel/user/usertile6.png" title="Afbeelding kiezen" onclick="document.settings.image.focus(); document.settings.image.value=this.src; document.settings.image.blur()" class="defaultimage"> <img src="http://static.lnhost.co.cc/panel/user/usertile7.png" title="Afbeelding kiezen" onclick="document.settings.image.focus(); document.settings.image.value=this.src; document.settings.image.blur()" class="defaultimage"> <img src="http://static.lnhost.co.cc/panel/user/usertile8.png" title="Afbeelding kiezen" onclick="document.settings.image.focus(); document.settings.image.value=this.src; document.settings.image.blur()" class="defaultimage"> <img src="http://static.lnhost.co.cc/panel/user/usertile9.png" title="Afbeelding kiezen" onclick="document.settings.image.focus(); document.settings.image.value=this.src; document.settings.image.blur()" class="defaultimage"> <img src="http://static.lnhost.co.cc/panel/user/usertile10.png" title="Afbeelding kiezen" onclick="document.settings.image.focus(); document.settings.image.value=this.src; document.settings.image.blur()" class="defaultimage"> <img src="http://static.lnhost.co.cc/panel/user/usertile11.png" title="Afbeelding kiezen" onclick="document.settings.image.focus(); document.settings.image.value=this.src; document.settings.image.blur()" class="defaultimage"> <img src="http://static.lnhost.co.cc/panel/user/usertile12.png" title="Afbeelding kiezen" onclick="document.settings.image.focus(); document.settings.image.value=this.src; document.settings.image.blur()" class="defaultimage"> <img src="http://static.lnhost.co.cc/panel/user.png" title="Geen afbeelding" onclick="document.settings.image.focus(); document.settings.image.value='http://static.lnhost.co.cc/panel/user/empty.png'; document.settings.image.blur()" class="defaultimage"> </div> <img src="<? if($form->value("image") == "" && $session->userinfo['image'] != ""){ echo $session->userinfo['image']; }elseif($form->value("image") != "") { echo $form->value("image"); } else { echo "http://static.lnhost.co.cc/panel/user/empty.png"; } ?>" id="imgsample" alt="Afbeelding is niet gevonden" title="Jouw afbeelding" style="float: left; width: 100px; height: 100px; border: 1px red solid; margin: 10px;"> <? echo T_USER_ACCOUNT_MAIL ?>:<input type="text" name="email" maxlength="50" value="<? if($form->value("email") == ""){ echo $session->userinfo['email']; }else{ echo $form->value("email"); } ?>" class="textfield"> <? echo $form->error("email"); ?><br> <? echo T_USER_ACCOUNT_GUI ?>: <select class="textfield" name="gui"> <option value="dos"<? if($session->userinfo['gui']=="dos") { echo " selected";} ?>><? echo T_USER_ACCOUNT_GUI_STD ?></option> <option value="win2000"<? if($session->userinfo['gui']=="win2000") { echo " selected";} ?>>Windows 2000</option> <option value="xp"<? if($session->userinfo['gui']=="xp") { echo " selected";} ?>>Windows XP</option> <option value="vista_basic"<? if($session->userinfo['gui']=="vista_basic") { echo " selected";} ?>>Windows Vista basic</option> <option value="vista_aero"<? if($session->userinfo['gui']=="vista_aero") { echo " selected";} ?>>Windows Vista Aero</option> </select><br> Afbeelding: <input type="text" name="image" value="<? if($form->value("image") == ""){ echo $session->userinfo['image']; }else{ echo $form->value("image"); } ?>" onBlur="document.getElementById('imgsample').src=this.value;"> <input type="hidden" name="subsettings" value="1"><br> <p style="clear: left; height: 1px;"></p> <input type="submit" value="<? echo T_USER_ACCOUNT_SUBMIT ?>" class="button"> </fieldset> </form> </p> <? } else if($control=="mail") { include('message-main.php'); //echo("<script language=\"JavaScript\">alert('E-mail is nog niet beschikbaar')</script>"); } else if($control=="users") { header('Location: admin-admin.php'); } else if($control=="cms") { ?> <? include('lang/set.php'); include('inc/accountlevels.php'); ?> <? $file=$_GET['file']; if($file=="edit") { ?> <? /*include('inc/cms/page_edit.php');*/ ?> <? //include("inc/sitemgmt/session.php"); include("inc/initsql.php"); $SQL_page="SELECT * FROM ".$site.TBL_SECTIONS." WHERE id=".$_GET['id']; $page_result=mysql_query($SQL_page); $page=mysql_fetch_array($page_result); mysql_close(); ?> <html><head><title>Edit '<? echo $page['section_title']?>' [VistaPanel -> CMS]</title></head><body> <? if(!isSiteAdmin()){ ?> <? include('inc/initsql.php'); $sql="INSERT INTO serv_log VALUES(NULL,'401',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Access denied for site \"".$_GET['site']."\"')"; mysql_query($sql); mysql_close(); ?> <p style="color: red;">ACCESS DENIED</p> <? } else { ?> <p> <script type="text/javascript" src="<? echo URL_TINYMCE ?>tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ // General options mode : "exact", elements : "section_main", theme : "advanced", skin : "o2k7", skin_variant : "black", plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime, preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars ,nonbreaking,xhtmlxtras,template,inlinepopups", // Theme options theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,undo,redo", theme_advanced_buttons3 : "link,unlink,anchor,image,cleanup,code,|,insertdate,inserttime,|,forecolor", theme_advanced_buttons4 : "hr,removeformat,|,sub,sup,|,charmap,advhr,|,fullscreen,|,cite,abbr,acronym,attribs,|,visualchar s,nonbreaking", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true }); </script> <form action="?control=cms&file=exec&site=<? echo $_GET['site']; ?>" method="POST"> <label><? echo T_CMS_S_PAGE ?>:<select class="textfield" name="page_id"> <? include("inc/initsql.php"); $sql="SELECT * FROM ".$site.TBL_PAGES." ORDER BY page_order ASC"; $res=mysql_query($sql); mysql_close(); ?> <? while($pages=mysql_fetch_array($res)){ ?> <option value="<? echo $pages['id']; ?>" <?if ($pages['id']==$page['page_id']){ echo "selected";}?>><? echo $pages['page_title']; ?></option> <? } ?> </select></label><br> <label><? echo T_TITLE ?>:<input type="text" name="section_title" value="<?php echo $page['section_title'] ?>" size="40" maxlength="120" class="textfield"></label><br> <label><? echo T_CMS_S_ACTION_EDIT_ORDER ?>:<input type="text" name="section_order" value="<?php echo $page['section_order'] ?>" size="2" maxlength="2" class="textfield"></label><br> <label><? echo T_CONTENT ?>:<textarea name="section_main" id="section_main" rows="6" cols="60" class="textfield"><?php echo $page['section_main'] ?></textarea></label><br> <input type="hidden" name="id" value="<?php echo $page['id'] ?>"> <input type="hidden" name="action" value="update"> <input type="submit" name="Submit" value="<? echo T_SUBMIT_OK ?>" class="button"> </form> </p> <? } ?> </body></html> <? } else if($file=="edit_page") { ?> <? //include("inc/sitemgmt/session.php"); include("inc/initsql.php"); $SQL_page="SELECT * FROM ".$site.TBL_PAGES." WHERE id='".$_GET['id']."'"; $page_result=mysql_query($SQL_page); $page=mysql_fetch_array($page_result); mysql_close(); ?> <? if(!isSiteAdmin()){ ?> <? include('inc/initsql.php'); $sql="INSERT INTO serv_log VALUES(NULL,'401',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Access denied for site \"".$_GET['site']."\"')"; mysql_query($sql); mysql_close(); ?> <p style="color: red;">ACCESS DENIED</p> <? } else { ?> <p> <form name="<? echo $site ?>_edit" action="java script:ajax_render('?control=cms&file=exec&site=<? echo $_GET['site']; ?>','POST',document.getElementById('frm<? echo $site; ?>_folder'),'page_id='+document.<? echo $site ?>_edit.page_id.value+'&page_title='+document.<? echo $site ?>_edit.page_title.value+'&page_order='+document.<? echo $site ?>_edit.page_order.value+'&action=update_page&page_id='+document.<? echo $site ?>_edit.page_id.value)"> <label><? echo T_TITLE ?>:<input type="text" name="page_title" value="<?php echo $page['page_title'] ?>" size="40" maxlength="120" class="textfield"></label><br> <label><? echo T_CMS_P_ACTION_EDIT_ORDER ?>:<input type="text" name="page_order" value="<?php echo $page['page_order'] ?>" size="2" maxlength="2" class="textfield"></label><br> <input type="hidden" name="action" value="update_page"><input type="hidden" name="page_id" value="<? echo $page['id']; ?>"> <input type="submit" name="Submit" value="OK" class="button"> </form> </p> <? } ?> <a href="?control=cms&file=list&site=<? echo $_GET['site']; ?>" onclick="ajax_render(this.href,'GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><img src="http://static.lnhost.co.cc/images/icons/Silk/arrow_undo.png"><? echo T_BACK ?></a> <? } else if($file=="new") { /*include('inc/cms/page_new.php');*/?> <? //include("inc/sitemgmt/session.php"); ?> <html><head><title>New [VistaPanel -> CMS]</title></head><body> <? if(!isSiteAdmin()){ ?> <? include('inc/initsql.php'); $sql="INSERT INTO serv_log VALUES(NULL,'401',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Access denied for site \"".$_GET['site']."\"')"; mysql_query($sql); mysql_close(); ?> <p style="color: red;">ACCESS DENIED</p> <? } else { ?> <script type="text/javascript" src="<? echo URL_TINYMCE ?>tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ // General options mode : "exact", elements : "section_main", theme : "advanced", skin : "o2k7", skin_variant : "black", plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime, preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars ,nonbreaking,xhtmlxtras,template,inlinepopups", // Theme options theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,undo,redo", theme_advanced_buttons3 : "link,unlink,anchor,image,cleanup,code,|,insertdate,inserttime,|,forecolor", theme_advanced_buttons4 : "hr,removeformat,|,sub,sup,|,charmap,advhr,|,fullscreen,|,cite,abbr,acronym,attribs,|,visualchar s,nonbreaking", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true }); </script> <p> <form action="?control=cms&file=exec&site=<? echo $_GET['site']; ?>" method="POST"> <label><? echo T_CMS_S_PAGE ?>:<select class="textfield" name="page_id"> <option disabled selected>Selecteer een pagina</option> <? include("inc/initsql.php"); $sql="SELECT * FROM ".$site.TBL_PAGES." ORDER BY page_order ASC"; $res=mysql_query($sql); mysql_close(); ?> <? while($page=mysql_fetch_array($res)){ ?> <option value="<? echo $page['id']; ?>"><? echo $page['page_title']; ?></option> <? } ?> </select></label><br> <label><? echo T_CMS_S_ACTION_NEW_ORDER ?>:<input type="text" name="section_order" size="2" maxlength="2" class="textfield"></label><br> <label><? echo T_TITLE ?>:<input type="text" name="section_title" value="" size="40" maxlength="120" class="textfield"></label><br> <label><? echo T_CONTENT ?>:<textarea name="section_main" rows="6" cols="60" class="textfield"></textarea></label><br> <input type="hidden" name="action" value="insert"> <input type="submit" name="Submit" value="<? echo T_SUBMIT_OK ?>" class="button"> </form></p> <? } ?> </body></html> <? } else if($file=="new_page") { ?> <? //include("inc/sitemgmt/session.php"); include("inc/initsql.php"); ?> <? if(!isSiteAdmin()){ ?> <? include('inc/initsql.php'); $sql="INSERT INTO serv_log VALUES(NULL,'401',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Access denied for site \"".$_GET['site']."\"')"; mysql_query($sql); mysql_close(); ?> <p style="color: red;">ACCESS DENIED</p> <? } else { ?> <p> <form action="java script:form_post('?control=cms&file=exec&site=<? echo $_GET['site']; ?>',this)" method=post> <label><? echo T_CMS_P_PAGE ?>:<input type="text" name="page_title" size="40" maxlength="120" class="textfield"></label><br> <label><? echo T_CMS_P_ACTION_NEW_ORDER ?>:<input type="text" name="page_order" size="2" maxlength="2" class="textfield"></label><br> <input type="hidden" name="action" value="insert_page"> <input type="submit" name="Submit" value="<? echo T_SUBMIT_OK ?>" class="button"> </form></p> <? } ?> <a href="?control=cms&file=list&site=<? echo $_GET['site']; ?>" onclick="ajax_render(this.href,'GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><img src="http://static.lnhost.co.cc/images/icons/Silk/arrow_undo.png"><? echo T_BACK ?></a> <? } else if($file=="list") { /*include('inc/cms/page_list.php');*/ ?> <?php include("inc/initsql.php"); $sql="SELECT * FROM ".$site.TBL_SECTIONS." ORDER BY page_id ASC"; $res=mysql_query($sql); ?> <? if(!isSiteAdmin()){ ?> <? include('inc/initsql.php'); $sql="INSERT INTO serv_log VALUES(NULL,'401',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Access denied for site \"".$_GET['site']."\"')"; mysql_query($sql); mysql_close(); ?> <p style="color: red;">ACCESS DENIED</p> <? } else { ?> <h3><? echo T_CMS_S ?></h3><p> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <th><? echo T_CMS_S_PAGE ?></th> <th>#</th> <th><? echo T_CMS_S_TITLE ?></th> <th><? echo T_CMS_S_ACTION ?></th> </tr> <? while($page=mysql_fetch_array($res)){ $sql=mysql_query("SELECT page_title FROM ".$site.TBL_PAGES." WHERE id='".$page['page_id']."' LIMIT 1"); $pages=mysql_fetch_array($sql); ?> <tr bgcolor="#F9F9F9"> <td><?php echo $pages['page_title'] ?></td> <td><?php echo $page['section_order'] ?></td> <td><a href="?control=cms&file=view&id=<? echo $page['id'] ?>&site=<? echo $_GET['site']; ?>" onclick="ajax_render(this.href,'GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><?php echo $page['section_title'] ?></a></td> <td><a href=?control=cms&file=x&type=section&id=<?php echo $page['id'] ?>&site=<? echo $_GET['site']; ?> onclick="ajax_render(this.href,'GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><img src="<? echo URL_IMG ?>/Silk/cross.png" title="<? echo T_CMS_S_ACTION_DEL ?>" alt="<? echo T_CMS_S_ACTION_DEL ?>"></a> <a href=?control=cms&file=edit&id=<?php echo $page['id'] ?>&site=<? echo $_GET['site']; ?> onclick="ajax_render(this.href,'window'); return false;"><img src="<? echo URL_IMG ?>/Silk/pencil.png" title="<? echo T_CMS_S_ACTION_EDIT ?>" alt="<? echo T_CMS_S_ACTION_EDIT ?>"></a></td> </tr> <?php } ?> <tr bgcolor="#F9F9F9"> <td colspan="4"><a href="?control=cms&file=new&site=<? echo $_GET['site']; ?>" onclick="ajax_render(this.href,'window'); return false;"><img src="<? echo URL_IMG ?>/Silk/add.png"><? echo T_CMS_S_ACTION_NEW ?></a></td> </tr> </table> </p> <? $sql="SELECT * FROM ".$site.TBL_PAGES." ORDER BY page_order ASC"; $res=mysql_query($sql); mysql_close(); ?> <h3><? echo T_CMS_P ?></h3><p> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <th>#</th> <th><? echo T_CMS_P_PAGE ?></th> <th>id</th> <th><? echo T_CMS_P_ACTION ?></th> </tr> <? while($pages=mysql_fetch_array($res)){ ?> <tr bgcolor="#F9F9F9"> <td><?php echo $pages['page_order'] ?></td> <td><?php echo $pages['page_title'] ?></td> <td><?php echo $pages['id'] ?></td> <td><a href=?control=cms&file=x&type=page&id=<?php echo $pages['id'] ?>&site=<? echo $_GET['site']; ?> onclick="ajax_render(this.href,'GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><img src="<? echo URL_IMG ?>/Silk/cross.png" title="<? echo T_CMS_P_ACTION_DEL ?>" alt="<? echo T_CMS_P_ACTION_DEL ?>"></a> <a href=?control=cms&file=edit_page&id=<?php echo $pages['id'] ?>&site=<? echo $_GET['site']; ?> onclick="ajax_render(this.href,'GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><img src="<? echo URL_IMG ?>/Silk/pencil.png" title="<? echo T_CMS_P_ACTION_EDIT ?>" alt="<? echo T_CMS_P_ACTION_EDIT ?>"></a></td> </tr> <?php } ?> <tr bgcolor="#F9F9F9"> <td colspan="4"><a href="?control=cms&file=new_page&site=<? echo $_GET['site']; ?>" onclick="ajax_render(this.href,'GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><img src="<? echo URL_IMG ?>/Silk/add.png"><? echo T_CMS_P_ACTION_NEW ?></a></td> </tr> </table> </p> <? } ?> <a href="?folder&site=<? echo $site ?>" onclick="ajax_render(this.href,'GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><img src="http://static.lnhost.co.cc/images/icons/Silk/arrow_undo.png"><? echo T_BACK ?></a> <? } else if($file=="view") { /*include('inc/cms/page_by_id.php');*/?> <?php include("inc/initsql.php"); if(isset($_GET['id'])) { $sql = 'SELECT * FROM '.$site.TBL_SECTIONS.' WHERE id='.$_GET['id'].' ORDER BY page_id ASC'; $res=mysql_query($sql); } else {$sql = 'SELECT * FROM '.$site.TBL_SECTIONS.' ORDER BY page_id ASC'; $res=mysql_query($sql);} while($page = mysql_fetch_array($res)){ $sql=mysql_query("SELECT page_title FROM ".$site.TBL_PAGES." WHERE id='".$page['page_id']."' LIMIT 1"); $pages=mysql_fetch_array($sql); ?> <h3><?php echo $pages['page_title'] ?> : <?php echo $page['section_title'] ?></h3> <p><?php echo $page['section_main'] ?></p> <?php } mysql_close(); ?> <a href="?folder&site=<? echo $site ?>" onclick="ajax_render(this.href,'GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><img src="http://static.lnhost.co.cc/images/icons/Silk/arrow_undo.png"><? echo T_BACK ?></a> <? } else if ($file=="exec") { if(isset($_GET['action'])) $action=$_GET['action']; if(isset($_POST['action'])) $action=$_POST['action']; include("inc/initsql.php"); //include('inc/sitemgmt/session.php'); if(isSiteAdmin()) { if($action=="delete"){ $id=$_GET['id']; $page_SQL_del="DELETE FROM ".$site.TBL_SECTIONS." WHERE id=$id"; $bool=mysql_query($page_SQL_del); if($bool==1) {echo "<script LANGUAGE=JavaScript>window.alert('".T_CMS_S_ACTION_DEL_S."')</SCRIPT>"; $sql="INSERT INTO serv_log VALUES(NULL,'200',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Section ".$id." deleted (site ".$site.")')"; mysql_query($sql);} if($bool<>1) {echo "<script LANGUAGE=JavaScript>window.alert('".T_CMS_S_ACTION_DEL_F."')</SCRIPT>"; $sql="INSERT INTO serv_log VALUES(NULL,'500',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Section ".$id." deletion failed (site ".$site.")')"; mysql_query($sql);} } if($action=="insert"){ $page_id=$_POST['page_id']; $section_order=$_POST['section_order']; $section_title=$_POST['section_title']; $section_main=$_POST['section_main']; $page_SQL_insert="INSERT INTO ".$site.TBL_SECTIONS." (page_id,section_order,section_title,section_main) VALUES ('$page_id','$section_order','$section_title','$section_main')"; $bool=mysql_query($page_SQL_insert); if($bool==1) {echo "<script LANGUAGE=JavaScript>window.alert('".T_CMS_S_ACTION_NEW_S."')</SCRIPT>"; $sql="INSERT INTO serv_log VALUES(NULL,'200',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Section inserted page_id=".$page_id.":section_order=".$section_order.":section_title=".$section_title.":section_main=".$section_main." (site ".$site.")')"; mysql_query($sql);} if($bool<>1) {echo "<script LANGUAGE=JavaScript>window.alert('".T_CMS_S_ACTION_NEW_F."')</SCRIPT>"; $sql="INSERT INTO serv_log VALUES(NULL,'500',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Section insertion failed page_id=".$page_id.":section_order=".$section_order.":section_title=".$section_title.":section_main=".$section_main." (site ".$site.")')"; mysql_query($sql);} echo "<script LANGUAGE=JavaScript>window.close()</SCRIPT>"; } if($action=="update"){ $id=$_POST['id']; $page_id=$_POST['page_id']; $section_order=$_POST['section_order']; $section_title=$_POST['section_title']; $section_main=$_POST['section_main']; $page_SQL_update="UPDATE ".$site.TBL_SECTIONS." SET page_id='$page_id',section_order='$section_order',section_title='$section_title',section_main='$section_main' WHERE id='$id'"; $bool=mysql_query($page_SQL_update); if($bool==1) {echo "<script LANGUAGE=JavaScript>window.alert('".T_CMS_S_ACTION_EDIT_S."')</SCRIPT>"; $sql="INSERT INTO serv_log VALUES(NULL,'200',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Section".$id." updated page_id=".$page_id.":section_order=".$section_order.":section_title=".$section_title.":section_main=".$section_main." (site ".$site.")')"; mysql_query($sql);} if($bool<>1) {echo "<script LANGUAGE=JavaScript>window.alert('".T_CMS_S_ACTION_EDIT_F."')</SCRIPT>"; $sql="INSERT INTO serv_log VALUES(NULL,'500',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Section".$id." update failed page_id=".$page_id.":section_order=".$section_order.":section_title=".$section_title.":section_main=".$section_main." (site ".$site.")')"; mysql_query($sql);} echo "<script LANGUAGE=JavaScript>window.close()</SCRIPT>"; } if($action=="delete_page"){ $page_id=$_GET['id']; $page_SQL_del="DELETE FROM ".$site.TBL_PAGES." WHERE id='".$page_id."'"; $bool=mysql_query($page_SQL_del); if($bool==1) {echo "<script LANGUAGE=JavaScript>window.alert('".T_CMS_P_ACTION_DEL_S."')</SCRIPT>"; $sql="INSERT INTO serv_log VALUES(NULL,'200',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Page".$page_id." deleted (site ".$site.")')"; mysql_query($sql);} if($bool<>1) {echo "<script LANGUAGE=JavaScript>window.alert('".T_CMS_P_ACTION_DEL_F."')</SCRIPT>"; $sql="INSERT INTO serv_log VALUES(NULL,'500',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Page".$page_id." deletion failed (site ".$site.")')"; mysql_query($sql);} } if($action=="insert_page"){ $page_title=$_POST['page_title']; $page_order=$_POST['page_order']; $page_SQL_insert="INSERT INTO ".$site.TBL_PAGES." (page_order,page_title) VALUES ('$page_order','$page_title')"; $bool=mysql_query($page_SQL_insert); if($bool==1) {echo "<script LANGUAGE=JavaScript>window.alert('".T_CMS_P_ACTION_NEW_S."')</SCRIPT>"; $sql="INSERT INTO serv_log VALUES(NULL,'200',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Page inserted page_title=".$page_title.":page_order=".$page_order." (site ".$site.")')"; mysql_query($sql);} if($bool<>1) {echo "<script LANGUAGE=JavaScript>window.alert('".T_CMS_P_ACTION_NEW_F."')</SCRIPT>"; $sql="INSERT INTO serv_log VALUES(NULL,'500',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Page insertion failed page_title=".$page_title.":page_order=".$page_order." (site ".$site.")')"; mysql_query($sql);} } if($action=="update_page"){ $page_title=$_POST['page_title']; $page_order=$_POST['page_order']; $page_id=$_POST['page_id']; $page_SQL_update="UPDATE ".$site.TBL_PAGES." SET page_order='$page_order',page_title='$page_title' WHERE id='".$page_id."'"; $bool=mysql_query($page_SQL_update); if($bool==1) {echo "<script LANGUAGE=JavaScript>window.alert('".T_CMS_P_ACTION_EDIT_S."')</SCRIPT>"; $sql="INSERT INTO serv_log VALUES(NULL,'200',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Page".$page_id." updated page_title=".$page_title.":page_order=".$page_order." (site ".$site.")')"; mysql_query($sql);} if($bool<>1) {echo "<script LANGUAGE=JavaScript>window.alert('".T_CMS_P_ACTION_EDIT_F."')</SCRIPT>"; $sql="INSERT INTO serv_log VALUES(NULL,'500',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Page".$page_id." update failed page_title=".$page_title.":page_order=".$page_order." (site ".$site.")')"; mysql_query($sql);} } } else { $sql="INSERT INTO serv_log VALUES(NULL,'401',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Edit access denied for site \"".$_GET['site']."\"')"; mysql_query($sql); echo "<script LANGUAGE=JavaScript>window.alert('ACCESS DENIED')</SCRIPT>"; } echo '<script language="JavaScript">ajax_render("?control=cms&site='.$site.'" ,"GET",document.getElementById("frm'.$_GET['site'].'_folder"));</SCRIPT>'; mysql_close(); } else if($file=="x") { if($_GET['type']=="section"){ ?> <? echo T_CMS_S_ACTION_DEL_Q ?> <br><a href="?control=cms&file=exec&id=<? echo $_GET['id']; ?>&action=delete&site=<? echo $_GET['site']; ?>" onclick="ajax_render(this.href,'GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><? echo T_CMS_S_ACTION_DEL_Y ?></a> || <a href="?control=cms&file=exec&site=<? echo $_GET['site']; ?>" onclick="ajax_render('?control=cms&site=<? echo $_GET['site']; ?>','GET',document.getElementById('frm<? echo $_GET['site']; ?>_folder')); return false;"><? echo T_CMS_S_ACTION_DEL_N ?></a> <? } if($_GET['type']=="page") { if($_GET['id']==1) { echo T_CMS_P_ACTION_DEL_HOME ?> <br><a style="color: gray; text-decoration: underline; cursor: pointer"><? echo T_CMS_P_ACTION_DEL_Y ?></a> || <a onclick="ajax_render(this.href,'GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;" href="?control=cms&site=<? echo $_GET['site']; ?>"><? echo T_CMS_P_ACTION_DEL_N ?></a> <? } else { echo T_CMS_P_ACTION_DEL_Q ?> <br><a href="?control=cms&file=exec&id=<? echo $_GET['id']; ?>&action=delete_page&site=<? echo $_GET['site']; ?>" onclick="ajax_render(this.href,'GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><? echo T_CMS_P_ACTION_DEL_Y ?></a> || <a onclick="ajax_render(this.href,'GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;" href="?control=cms&site=<? echo $_GET['site']; ?>"><? echo T_CMS_P_ACTION_DEL_N ?></a> <? }} } else { ?> <? //include('inc/sitemgmt/session.php'); if(!isSiteAdmin()) { header('Location: ?control=cms&file=view&site='.$site);} if(isSiteAdmin()) { header('Location: ?control=cms&file=list&site='.$site);}?> <? } ?> </body></html> <? exit; ?> <?} if($control=="news") { ?> <? include('lang/set.php'); include('inc/accountlevels.php');?> <? /*Geen export*/ $file=$_GET['file']; $id=$_GET['id']; if($file=="edit") { /*Include news_edit.php*/ ?> <? include("inc/initsql.php"); $SQL_news="SELECT * FROM ".$site.TBL_NEWS." WHERE id=" . $_GET['id']; $news_result=mysql_query($SQL_news); $news=mysql_fetch_array($news_result); mysql_close(); ?> <? if(!isSiteNewsEdit()){ ?> <? include('inc/initsql.php'); $sql="INSERT INTO serv_log VALUES(NULL,'401',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Access denied for site \"".$_GET['site']."\" (news)')"; mysql_query($sql); mysql_close(); ?> <h2><? echo T_NEWS_LIST_ACTION_EDIT_TITLE ?></h2> <p style="color: red;">ACCESS DENIED</p> <? } else { ?> <h2><? echo T_NEWS_LIST_ACTION_EDIT_TITLE ?></h2> <p> <form action="?control=news&file=list&site=<? echo $_GET['site']; ?>" method=post> <label><? echo T_TITLE ?>:<input type="text" name="news_header" value="<?php echo $news['news_header'] ?>" size="40" maxlength="120" class="textfield"></label><br> <label><? echo T_NEWS_LIST_DATE ?>:<input type="text" name="news_datetime" value="<?php echo $news['news_datetime'] ?>" size="19" maxlength="19" class="textfield"></label><br> <label><? echo T_CONTENT ?>:<textarea name="news_main" rows="6" cols="60" class="textfield"><?php echo $news['news_main'] ?></textarea></label> <input type="hidden" name="id" value="<?php echo $news['id'] ?>"> <input type="hidden" name="action" value="update"> <input type="submit" name="Submit" value="<? echo T_SUBMIT_OK ?>" class="button"> </form> </p><p> <a href="?control=news&file=list&site=<? echo $_GET['site']; ?>"><img src="<? echo URL_IMG ?>/Silk/arrow_undo.png"><? echo T_BACK ?></a> </p> <? } ?> <? } else if($file=="new") { /*Include news_new.php*/?> <? include("inc/initsql.php"); ?> <? if(!isSiteNewsEdit()){ ?> <? include('inc/initsql.php'); $sql="INSERT INTO serv_log VALUES(NULL,'401',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Access denied for site \"".$_GET['site']."\" (news)')"; mysql_query($sql); mysql_close(); ?> <h2><? echo T_NEWS_LIST_ACTION_NEW ?></h2> <p style="color: red;">ACCESS DENIED</p> <? } else { ?> <h2><? echo T_NEWS_LIST_ACTION_NEW ?></h2> <p> <form action="?control=news&file=list&site=<? echo $_GET['site']; ?>" method=post> <label><? echo T_TITLE ?>:<input type="text" name="news_header" size="40" maxlength="120" class="textfield"></label><br> <label><? echo T_NEWS_LIST_DATE ?>:<input type="text" name="news_datetime" value="<?php echo(date("Y-m-d")) ?>" size="19" maxlength="19" class="textfield"></label><br> <label><? echo T_CONTENT ?>:<textarea name="news_main" rows="6" cols="60" class="textfield"></textarea></label><br> <input type="hidden" name="action" value="insert"> <input type="submit" name="Submit" value="<? echo T_SUBMIT_OK ?>" class="button"> </form> </p><p> <a href="?control=news&file=list&site=<? echo $_GET['site']; ?>"><img src="<? echo URL_IMG ?>/Silk/arrow_undo.png"><? echo T_BACK ?></a> </p> <? } ?> <? } else if($file=="list") { /*Include news_list.php*/?> <?php if(isset($_GET['action'])) $action=$_GET['action']; if(isset($_POST['action'])) $action=$_POST['action']; include("inc/initsql.php"); if(isSiteNewsEdit()) { if($action=="delete"){ $id=$_GET['id']; $news_SQL_del="DELETE FROM ".$site.TBL_NEWS." WHERE id=$id"; $bool=mysql_query($news_SQL_del); if($bool==1) {$message['body']=T_NEWS_LIST_ACTION_DEL_S; $message['type']='ok'; $sql="INSERT INTO serv_log VALUES(NULL,'200',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','NewsItem".$id." deleted (site ".$site.")')"; mysql_query($sql);} if($bool<>1) {$message['body']=T_NEWS_LIST_ACTION_DEL_F; $message['type']='error'; $sql="INSERT INTO serv_log VALUES(NULL,'500',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','NewsItem".$id." deletion failure (site ".$site.")')"; mysql_query($sql);} } if($action=="insert"){ $news_main=$_POST['news_main']; $news_header=$_POST['news_header']; $news_datetime=$_POST['news_datetime']; $news_main=nl2br($news_main); $news_SQL_insert="INSERT INTO ".$site.TBL_NEWS." (news_header,news_datetime,news_main) VALUES ('$news_header','$news_datetime','$news_main')"; $bool=mysql_query($news_SQL_insert); if($bool==1) {$message['body']=T_NEWS_LIST_ACTION_NEW_S; $message['type']='ok'; $sql="INSERT INTO serv_log VALUES(NULL,'200',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','NewsItem inserted news_main=".$news_main.":news_header=".$news_header.":news_datetime=".$news_datetime." (site ".$site.")')"; mysql_query($sql);} if($bool<>1) {$message['body']=T_NEWS_LIST_ACTION_NEW_F; $message['type']='error'; $sql="INSERT INTO serv_log VALUES(NULL,'500',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','NewsItem insertion failed news_main=".$news_main.":news_header=".$news_header.":news_datetime=".$news_datetime." (site ".$site.")')"; mysql_query($sql);} } if($action=="update"){ $id=$_POST['id']; $news_main=$_POST['news_main']; $news_header=$_POST['news_header']; $news_datetime=$_POST['news_datetime']; $news_main=nl2br($news_main); $news_SQL_update="UPDATE ".$site.TBL_NEWS." SET news_header='$news_header',news_main='$news_main',news_datetime='$news_datetime' WHERE id='$id'"; $bool=mysql_query($news_SQL_update); if($bool==1) {$message['body']=T_NEWS_LIST_ACTION_EDIT_S; $message['type']='ok'; $sql="INSERT INTO serv_log VALUES(NULL,'200',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','NewsItem".$id." updated news_main=".$news_main.":news_header=".$news_header.":news_datetime=".$news_datetime." (site ".$site.")')"; mysql_query($sql);} if($bool<>1) {$message['body']=T_NEWS_LIST_ACTION_EDIT_F; $message['type']='error'; $sql="INSERT INTO serv_log VALUES(NULL,'500',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','NewsItem".$id." update failed news_main=".$news_main.":news_header=".$news_header.":news_datetime=".$news_datetime." (site ".$site.")')"; mysql_query($sql);} } } else { $message['body']='ACCESS DENIED'; $message['type']='error'; $sql="INSERT INTO serv_log VALUES(NULL,'401',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Edit news access denied for site \"".$_GET['site']."\"')"; mysql_query($sql);} mysql_close(); ?> <? if(!isSiteNewsEdit()){ ?> <? include('inc/initsql.php'); $sql="INSERT INTO serv_log VALUES(NULL,'401',NULL,'".$session->username."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER["REQUEST_URI"]."','Access denied for site \"".$_GET['site']."\" (news)')"; mysql_query($sql); mysql_close(); ?> <h2><? echo T_NEWS_LIST ?></h2> <p style="color: red;">ACCESS DENIED</p> <? } else { ?> <h2><? echo T_NEWS_LIST ?></h2> <? if(isset($message)) { if($message['type']=="error") {echo('<p style="background-color: red; color: black; border: 5px double red;"><img src="'.URL_IMG.'/Silk/error.png" alt="error">');} if($message['type']=="ok") {echo('<p style="background-color: #7FFF00; color: black; border: 5px double #7FFF00;"><img src="'.URL_IMG.'/Silk/accept.png" alt="OK">');} echo($message['body']."</p>"); } ?> <p> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <th><? echo T_NEWS_LIST_DATE ?></th> <th><? echo T_TITLE ?></th> <th><? echo T_NEWS_LIST_ACTION ?></th> </tr> <? include('inc/initsql.php'); $sql="SELECT * FROM ".$site.TBL_NEWS." ORDER BY news_datetime DESC"; $res=mysql_query($sql); while($news=mysql_fetch_array($res)){ $unixtime = strtotime($news['news_datetime']); ?> <tr bgcolor="#F9F9F9"> <td><?php echo date("d-m-Y",$unixtime) ?></td> <td><a href="?control=news&file=view&id=<? echo $news['id']; ?>&site=<? echo $_GET['site']; ?>"><?php echo $news['news_header'] ?></a></td> <td><a href=?control=news&file=list&id=<?php echo $news['id'] ?>&action=delete&site=<? echo $_GET['site']; ?>><img src="<? echo URL_IMG ?>/Silk/cross.png" title="<? echo T_NEWS_LIST_ACTION_DEL ?>"></a> <a href=?control=news&file=edit&id=<?php echo $news['id'] ?>&site=<? echo $_GET['site']; ?>><img src="<? echo URL_IMG ?>/Silk/pencil.png" title="<? echo T_NEWS_LIST_ACTION_EDIT ?>"></a></td> </tr> <?php } mysql_close(); ?> <tr bgcolor="#F9F9F9"> <td colspan="4"><a href="?control=news&file=new&site=<? echo $_GET['site']; ?>"><img src="<? echo URL_IMG ?>/Silk/add.png"><? echo T_NEWS_LIST_ACTION_NEW_TITLE ?></a></td> </tr> </table> </p> <a href="?folder&site=<? echo $_GET['site']; ?>"><img src="<? echo URL_IMG ?>/Silk/arrow_undo.png"><? echo T_BACK ?></a> <? } ?> <? } else if($file=="view") { /*Include news_by_id.php*/?> <h2><? echo T_NEWS ?></h2> <ul> <?php include("inc/initsql.php"); $news_id=$_GET['id']; if($news_id !='') { $sql = 'SELECT * FROM '.$site.TBL_NEWS.' WHERE id='.$news_id.' ORDER BY news_datetime DESC'; } else {$sql = 'SELECT * FROM '.$site.TBL_NEWS.' ORDER BY news_datetime DESC'; } $res= mysql_query($sql); while($news = mysql_fetch_array($res)){ //Opmaak van datum $unixtime = strtotime($news['news_datetime']); ?> <li> <h3><? echo date("d-m-Y",$unixtime) ?>: <?php echo $news['news_header'] ?></h3> <p><?php echo $news['news_main'] ?></p> </li> <?php } mysql_close(); ?> </ul> <a href="?control=news&file=list&site=<? echo $_GET['site']; ?>"><img src="<? echo URL_IMG ?>/Silk/arrow_undo.png"><? echo T_BACK ?></a> <? } else { ?> <? if(!isSiteNewsEdit()) { header('Location: ?control=news&file=view&id='.$id.'&site='.$_GET['site']);} if(isSiteNewsEdit()) { header('Location: ?control=news&file=list&site='.$_GET['site']); } ?> <? } ?> <? } else if($control=="siteusers") { header('Location: siteadmin.php?site='.$_GET['site']); } exit; }?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head> <style type="text/css"> body { margin: 0px; padding: 0px; } #taskbar { z-index: 3; position: fixed; bottom: 0px; left: 0px; width: 100%; padding: 0px; margin: 0px; } #taskbar #start { z-index: 2; width: 59px; height: 34px; background: url(http://static.lnhost.co.cc/panel/taskbar_button.png); position: fixed; bottom: 0px; left: 0px; opacity:0.8; filter:alpha(opacity=80); } #taskbar #bar { width: 100%; height: 30px; position: fixed; bottom: 0px; left: 59px; background: url(http://static.lnhost.co.cc/panel/taskbar_bar.png); opacity:0.8; filter:alpha(opacity=80); } #taskbar #bar a { cursor: default; display: block; color: white; padding: 4px 10px 5px; float: left; width: 136px; height: 21px; background: url(http://static.lnhost.co.cc/panel/taskbar_object.png) no-repeat; margin-right: 5px; text-decoration: none; } #taskbar #bar a.active { background: url(http://static.lnhost.co.cc/panel/taskbar_object_active.png); } #taskbar #menu { display: none; background: url(http://static.lnhost.co.cc/panel/menu_2.png); z-index: 1; position: fixed; bottom: 30px; left: 0px; width: 427px; height: 500px; } #taskbar #menu #left { float: left; margin-top: 9px; margin-left: 9px; width: 250px; height: 480px; overflow: auto; overflow-x: hidden; } #taskbar #menu #left a { cursor: default; padding: 0px 10px; display: block; width: 226px; height: 36px; margin-bottom: 5px; margin-left: 2px; text-decoration: none; color: black; border: none; } #taskbar #menu #left a:hover { background: url(http://static.lnhost.co.cc/panel/menu_button_light.png); } #taskbar #menu #left a img { border: none; height: 33px; width: 33px; } #taskbar #menu #right { float: left; margin-top: -20px; margin-left: 9px; width: 152px; } #taskbar #menu #right a { cursor: default; color: white; text-decoration: none; padding: 5px 10px; display: block; width: 132px; height: 21px; margin-bottom: 5px; } #taskbar #menu #right a:hover { background: url(http://static.lnhost.co.cc/panel/menu_button.png); } #taskbar #menu #usericon { cursor: pointer; display: block; float: left; width: 65px; height: 65px; position: relative; top: -27px; left: 50px; } #taskbar #menu #customicon { cursor: pointer; display: block; float: left; width: 47px; height: 47px; position: relative; top: -20px; left: -6px; } #taskbar #bar #clock { cursor: default; margin-top: 5px; color: white; right: 10px; position: fixed; } #taskbar #bar #shortcuts { margin: 0; padding: 0; float: left; cursor: default; color: white; width: 50px; overflow: hidden; } #taskbar #bar #shortcuts p { width: 17px; height: 16px; margin: 0; padding: 7px 3px; } #taskbar #bar #shortcuts p img { width: 17px; height: 14px; } #content { width: 100%; height: 100%; } </style> <!----------------------------------------------------------------------------------------------------CP CSS------------------------> <style> #background { position:fixed; top: 0; left: 0; right: 0; bottom: 0; width:100%; height:100%; z-index:-1; padding: 0; margin:0; } #container { overflow: auto; z-index:3; height: 100%; } .tile { margin: 5px; padding: 5px; width: 106px; height: 75px; float: left; cursor: pointer; color: black; text-decoration: none; text-align: center; } #tilehover { background: url('http://static.lnhost.co.cc/panel/tile bg hover.png'); opacity:0.8; filter:alpha(opacity=80); } #tileclick { background: url('http://static.lnhost.co.cc/panel/tile bg click.png'); opacity:0.8; filter:alpha(opacity=80); } .tile img { width: 60px; height: 60px; margin: 0 auto; display: block; } /* ALERT CSS */ .alert .top {background-image: url(http://static.lnhost.co.cc/panel/alerts/vista_top_-x.png); background-repeat: no-repeat; height: 25px; padding-left: 10px; padding-top: 3px; padding-right: 60px; width: 910px; z-index:4; text-shadow: #ffffff 0px 0px 15px} .alert .mid {background-image: url(http://static.lnhost.co.cc/alert/vista_aero_mid.jpg); background-repeat: repeat-y; z-index: 3; padding-left: 5px; padding-right: 5px; width: 970px; height: 360px; overflow:auto} .alert .bottom {background-image: url(http://static.lnhost.co.cc/alert/vista_aero_bottom.jpg); background-repeat: no-repeat; height: 8px; width: 980px; z-index: 4} .alert .close{position:absolute; top: 0px; left: 932px; height: 16px; width: 40px; z-index: 4} .alert .minimize {position:absolute; top: 0px; left: 905px; height: 16px; width: 24px; z-index: 4} .alert {display:none; z-index: 2; position:fixed; top: 40px; left: 40px;} .alert .close-but {display: none;} .alert a {color: #00bfff; text-decoration: none;} .alert a:hover {text-decoration: underline;} #layer {background-color: #ffffff; position: fixed; left: 0px; right: 0px; top: 0px; bottom: 0px; z-index: 1; display:none; opacity: 0.4; filter: alpha(opacity=40); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";} /*transparent layer over achtergrond*/ .alert .mid > div {width: 967px; height: 360px; overflow: auto;} </style> <? if(isset($_GET['folder'])) { include('inc/accountlevels.php'); if(isSiteNewsEdit()) {?> <div class="tile" onmouseover="this.setAttribute('id','tilehover')" onmouseout="this.removeAttribute('id')" onmousedown="this.setAttribute('id','tileclick')" onmouseup="this.setAttribute('id','tilehover')" onclick="ajax_render('?control=news&site=<? echo $_GET['site']; ?>','GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><img src="http://static.lnhost.co.cc/panel/icons/Journal.exe_I0068_0409.png">Nieuws</div> <? } if(isSiteAdmin()) {?> <div class="tile" onmouseover="this.setAttribute('id','tilehover')" onmouseout="this.removeAttribute('id')" onmousedown="this.setAttribute('id','tileclick')" onmouseup="this.setAttribute('id','tilehover')" onclick="ajax_render('?control=cms&site=<? echo $_GET['site']; ?>','GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><img src="http://static.lnhost.co.cc/panel/icons/Journal.exe_I007f_0409.png">CMS</div> <? } if(isSiteFullAdmin()) { ?> <div class="tile" onmouseover="this.setAttribute('id','tilehover')" onmouseout="this.removeAttribute('id')" onmousedown="this.setAttribute('id','tileclick')" onmouseup="this.setAttribute('id','tilehover')" onclick="ajax_render('?control=siteusers&site=<? echo $_GET['site']; ?>','GET',document.getElementById('frm<? echo $_GET['site']?>_folder')); return false;"><img src="http://static.lnhost.co.cc/panel/icons/146.png">Toegangscontrole</div> <? } exit; } ?> <script language="JavaScript" src="http://static.lnhost.co.cc/public_js/busy.js"></script> <script type="text/javascript"> //<!-- var mousex = 0; var mousey = 0; var grabx = 0; var graby = 0; var orix = 0; var oriy = 0; var elex = 0; var eley = 0; var algor = 0; var cZIndex = 10; var dragobj = null; function falsefunc() { return false; } // used to block cascading events function init() { document.onmousemove = update; // update(event) implied on NS, update(null) implied on IE update(); loading.remove(); } function getMouseXY(e) // works on IE6,FF,Moz,Opera7 { if (!e) e = window.event; // works on IE, but not NS (we rely on NS passing us the event) if (e) { if (e.pageX || e.pageY) { // this doesn't work on IE6!! (works on FF,Moz,Opera7) mousex = e.pageX; mousey = e.pageY; algor = '[e.pageX]'; if (e.clientX || e.clientY) algor += ' [e.clientX] ' } else if (e.clientX || e.clientY) { // works on IE6,FF,Moz,Opera7 mousex = e.clientX + document.body.scrollLeft; mousey = e.clientY + document.body.scrollTop; algor = '[e.clientX]'; if (e.pageX || e.pageY) algor += ' [e.pageX] ' } } } function update(e) { getMouseXY(e); // NS is passing (event), while IE is passing (null) document.getElementById('taskbar').style.zIndex = cZIndex+1; document.getElementById('menu').style;zIndex = cZIndex+2; } function grab(context) { document.onmousedown = falsefunc; // in NS this prevents cascading of events, thus disabling text selection dragobj = context; dragobj.style.zIndex = cZIndex; // move it to the top document.onmousemove = drag; document.onmouseup = drop; grabx = mousex; graby = mousey; elex = orix = dragobj.offsetLeft; eley = oriy = dragobj.offsetTop; update(); min_all(); } function drag(e) // parameter passing is important for NS family { if (dragobj) { elex = orix + (mousex-grabx); eley = oriy + (mousey-graby); dragobj.style.position = "absolute"; dragobj.style.left = (elex).toString(10) + 'px'; dragobj.style.top = (eley).toString(10) + 'px'; } update(e); return false; // in IE this prevents cascading of events, thus text selection is disabled } function drop() { if (dragobj) { dragobj = null; cZIndex++; } update(); document.onmousemove = update; document.onmouseup = null; document.onmousedown = null; // re-enables text selection on NS } //--> </script> <script> start_clicked=false; </script> </head> <body onload="init();"><script language="JavaScript"> loading=getBusyOverlay('viewport',{color:'black', opacity:0.8, text:'Vista panel is loading...', style:'text-shadow: 0 0 3px black;font-weight:bold;font-size:16px;color:white'},{color:'#ffffff', size:256, type:'o'}); </script> <div id="content" onclick="start_clicked=false; document.getElementById('start').style.background='url(http://static.lnhost.co.cc/panel/taskbar_button.png)'; document.getElementById('menu').style.display='none';"> <img src="back.jpg" id="background"> <div id="container"> <div class="tile" onmouseover="this.setAttribute('id','tilehover')" onmouseout="this.removeAttribute('id')" onmousedown="this.setAttribute('id','tileclick')" onmouseup="this.setAttribute('id','tilehover')" onclick="popup_frame('Gebruikersinfo','?control=userinfo&user=<? echo $session->username ?>','userinfo'); return false;" href="?control=userinfo&user=<? echo $session->username ?>"><img src="http://static.lnhost.co.cc/panel/icons/control.exe_I0065_0409.png">Account</div> <div class="tile" onmouseover="this.setAttribute('id','tilehover')" onmouseout="this.removeAttribute('id')" onmousedown="this.setAttribute('id','tileclick')" onmouseup="this.setAttribute('id','tilehover')" onclick="popup_frame('Berichten','?control=mail','messages'); return false;"><img src="http://static.lnhost.co.cc/panel/icons/imageres.dll_I0014_0409.png">Berichten</div> <? if($session->isAdmin()) { ?><div class="tile" onmouseover="this.setAttribute('id','tilehover')" onmouseout="this.removeAttribute('id')" onmousedown="this.setAttribute('id','tileclick')" onmouseup="this.setAttribute('id','tilehover')" onclick="popup_frame('Administratie centrum','?control=users','admin'); return false;"><img src="http://static.lnhost.co.cc/panel/icons/146.png">Gebruikers</div><? } ?> <div class="tile" onmouseover="this.setAttribute('id','tilehover')" onmouseout="this.removeAttribute('id')" onmousedown="this.setAttribute('id','tileclick')" onmouseup="this.setAttribute('id','tilehover')" onclick="location.href='inc/sitemgmt/process.php'"><img src="http://static.lnhost.co.cc/panel/icons/imageres.dll_I001f_0409.png">Afmelden</div> <div style="clear: both;"></div> <? include('inc/initsql.php'); $sql="SELECT ref,title FROM sites WHERE username='".$session->username."'"; $res=mysql_query($sql); while($site=mysql_fetch_array($res)) { ?> <div class="tile" onmouseover="this.setAttribute('id','tilehover')" onmouseout="this.removeAttribute('id')" onmousedown="this.setAttribute('id','tileclick')" onmouseup="this.setAttribute('id','tilehover')" onclick="popup_frame('<? echo $site['title']; ?>','?folder&site=<? echo $site['ref']; ?>','<? echo $site['ref']; ?>_folder'); return false;" href="?folder&site=<? echo $site['ref']; ?>"><img src="http://static.lnhost.co.cc/panel/icons/imageres.dll_I00be_0409.png"><? echo $site['title'] ;?></div> <? } mysql_close(); ?> </div> </div> <div id="taskbar"> <div id="start" onmouseover="if(!start_clicked) this.style.background='url(http://static.lnhost.co.cc/panel/taskbar_button_hover.png)';" onmouseout="if(!start_clicked) this.style.background='url(http://static.lnhost.co.cc/panel/taskbar_button.png)';" onmousedown="if(!start_clicked) {this.style.background='url(http://static.lnhost.co.cc/panel/taskbar_button_click.png)'; start_clicked=true; document.getElementById('menu').style.display='block';} else {this.style.background='url(http://static.lnhost.co.cc/panel/taskbar_button_hover.png)'; start_clicked=false; document.getElementById('menu').style.display='none';}" title="Start"></div> <div id="menu"> <div id="left"> <a href="#" onclick="popup_frame('Berichten','?control=mail','messages'); start_clicked=false; document.getElementById('start').style.background='url(http://static.lnhost.co.cc/panel/taskbar_button.png)'; document.getElementById('menu').style.display='none'; return false;"><img src="http://static.lnhost.co.cc/panel/icons/imageres.dll_I0014_0409.png">Berichten</a> <a href="#" onclick="popup_frame('Browser','?control=news&site=dev&file=view','browser'); start_clicked=false; document.getElementById('start').style.background='url(http://static.lnhost.co.cc/panel/taskbar_button.png)'; document.getElementById('menu').style.display='none'; return false;"><img src="http://static.lnhost.co.cc/panel/icons/imageres.dll_I0013_0409.png">Ontwikkellaars nieuws</a> </div> <a href="#" style="border: none; text-decoration: none;" onclick="popup_frame('Gebruikersinfo','?control=userinfo&user=<? echo $session->username ?>','userinfo'); start_clicked=false; document.getElementById('start').style.background='url(http://static.lnhost.co.cc/panel/taskbar_button.png)'; document.getElementById('menu').style.display='none'; return false;"> <img src="user.png" id="usericon" style="border: none;"> <img src="<? echo $session->userinfo['image'] ?>" id="customicon" style="border: none;"> </a> <div id="right"> <a href="#" onclick="popup_frame('Gebruikersinfo','?control=userinfo&user=<? echo $session->username ?>','userinfo'); start_clicked=false; document.getElementById('start').style.background='url(http://static.lnhost.co.cc/panel/taskbar_button.png)'; document.getElementById('menu').style.display='none'; return false;">Account</a> <a href="inc/sitemgmt/process.php">Afmelden</a> </div></div> <div id="bar" onclick="start_clicked=false; document.getElementById('start').style.background='url(http://static.lnhost.co.cc/panel/taskbar_button.png)'; document.getElementById('menu').style.display='none';"> <div id="shortcuts"><p onclick="min_all()" onmouseover="this.style.background='url(http://static.lnhost.co.cc/panel/taskbar_shortcut_object.png)';" onmouseout="this.style.background='none';" onmousedown="this.style.background='url(http://static.lnhost.co.cc/panel/taskbar_shortcut_object_active.png)';" onmouseup="this.style.background='url(http://static.lnhost.co.cc/panel/taskbar_shortcut_object.png)';"><img src="http://static.lnhost.co.cc/panel/desktop.png" alt="Bureaublad weergeven" title="Bureaublad weergeven"></p></div> <div id="clock"></div> </div> </div> <? include('inc/initsql.php'); $sql="SELECT ref,title FROM sites WHERE username='".$session->username."'"; $res=mysql_query($sql); while($site=mysql_fetch_array($res)) { ?> <div class="alert" id="<? echo $site['ref']; ?>_folder"> <div class="top" id="top<? echo $site['ref']; ?>_folder" onmousedown="grab(this.parent); highlite('<? echo $site['ref']; ?>_folder',true);">[LOADING...]</div><div onclick="show('<? echo $site['ref']; ?>_folder',false)" class="minimize" onmouseover="mouse('<? echo $site['ref']; ?>_folder','min','hover',true)" onmouseout="mouse('<? echo $site['ref']; ?>_folder','min','hover',false)" onmousedown="mouse('<? echo $site['ref']; ?>_folder','min','click',true)" onmouseup="mouse('<? echo $site['ref']; ?>_folder','min','click',false)"></div><div class="close" onclick="show('<? echo $site['ref']; ?>_folder',false); removeTaskbarItem('<? echo $site['ref']; ?>_folder')" onmouseover="mouse('<? echo $site['ref']; ?>_folder','close','hover',true)" onmouseout="mouse('<? echo $site['ref']; ?>_folder','close','hover',false)" onmousedown="mouse('<? echo $site['ref']; ?>_folder','close','click',true)" onmouseup="mouse('<? echo $site['ref']; ?>_folder','close','click',false)"></div> <div class="mid"><div id="frm<? echo $site['ref']; ?>_folder" src="http://static.lnhost.co.cc/images/icons/loading.gif" width="950" height="350"></div></div> <div class="bottom"><input type="button" onclick="show('<? echo $site['ref']; ?>_folder', false)" value="Sluiten" class="close-but"></div> </div> <? } mysql_close(); ?> <div class="alert" id="userinfo" onmousedown="grab(this); highlite('userinfo',true);"> <div class="top" id="topuserinfo">[LOADING...]</div><div onclick="show('userinfo',false)" class="minimize" onmouseover="mouse('userinfo','min','hover',true)" onmouseout="mouse('userinfo','min','hover',false)" onmousedown="mouse('userinfo','min','click',true)" onmouseup="mouse('userinfo','min','click',false)"></div><div class="close" onclick="show('userinfo',false); removeTaskbarItem('userinfo')" onmouseover="mouse('userinfo','close','hover',true)" onmouseout="mouse('userinfo','close','hover',false)" onmousedown="mouse('userinfo','close','click',true)" onmouseup="mouse('userinfo','close','click',false)"></div> <div class="mid"><div id="frmuserinfo" src="http://static.lnhost.co.cc/images/icons/loading.gif" width="950" height="350"></div></div> <div class="bottom"><input type="button" onclick="show('userinfo', false)" value="Sluiten" class="close-but"></div> </div> <div class="alert" id="admin" onmousedown="grab(this); highlite('admin',true);"> <div class="top" id="topadmin">[LOADING...]</div><div onclick="show('admin',false)" class="minimize" onmouseover="mouse('admin','min','hover',true)" onmouseout="mouse('admin','min','hover',false)" onmousedown="mouse('admin','min','click',true)" onmouseup="mouse('admin','min','click',false)"></div><div class="close" onclick="show('admin',false); removeTaskbarItem('admin')" onmouseover="mouse('admin','close','hover',true)" onmouseout="mouse('admin','close','hover',false)" onmousedown="mouse('admin','close','click',true)" onmouseup="mouse('admin','close','click',false)"></div> <div class="mid"><div id="frmadmin" src="http://static.lnhost.co.cc/images/icons/loading.gif" width="950" height="350"></div></div> <div class="bottom"><input type="button" onclick="show('admin', false)" value="Sluiten" class="close-but"></div> </div> <div class="alert" id="messages" onmousedown="grab(this); highlite('messages',true);"> <div class="top" id="topmessages">[LOADING...]</div><div onclick="show('messages',false)" class="minimize" onmouseover="mouse('messages','min','hover',true)" onmouseout="mouse('messages','min','hover',false)" onmousedown="mouse('messages','min','click',true)" onmouseup="mouse('messages','min','click',false)"></div><div class="close" onclick="show('messages',false); removeTaskbarItem('messages')" onmouseover="mouse('messages','close','hover',true)" onmouseout="mouse('messages','close','hover',false)" onmousedown="mouse('messages','close','click',true)" onmouseup="mouse('messages','close','click',false)"></div> <div class="mid"><div id="frmmessages" src="http://static.lnhost.co.cc/images/icons/loading.gif" width="950" height="350"></div></div> <div class="bottom"><input type="button" onclick="show('messages', false)" value="Sluiten" class="close-but"></div> </div> <div class="alert" id="browser" onmousedown="grab(this); highlite('browser',true);"> <div class="top" id="topbrowser">[LOADING...]</div><div onclick="show('browser',false)" class="minimize" onmouseover="mouse('browser','min','hover',true)" onmouseout="mouse('browser','min','hover',false)" onmousedown="mouse('browser','min','click',true)" onmouseup="mouse('browser','min','click',false)"></div><div class="close" onclick="show('browser',false); removeTaskbarItem('browser')" onmouseover="mouse('browser','close','hover',true)" onmouseout="mouse('browser','close','hover',false)" onmousedown="mouse('browser','close','click',true)" onmouseup="mouse('browser','close','click',false)"></div> <div class="mid"><div id="frmbrowser" src="http://static.lnhost.co.cc/images/icons/loading.gif" width="950" height="350"></div></div> <div class="bottom"><input type="button" onclick="show('browser', false)" value="Sluiten" class="close-but"></div> </div> <script> clockarea=document.getElementById('clock'); function updateclock() { date=new Date(); hours=date.getHours(); if(hours<10) hours="0"+hours; minutes=date.getMinutes(); if(minutes<10) minutes="0"+minutes; time=hours+":"+minutes; clockarea.innerHTML=time; setTimeout("updateclock()",500); } updateclock(); </script> <!---popup handler--> <script> if (document.images) { pic1= new Image(1,1); pic1.src="http://static.lnhost.co.cc/panel/alerts/vista_top_-x.png"; pic2= new Image(1,1); pic2.src="http://static.lnhost.co.cc/panel/alerts/vista_top_-x_xhover0.png"; pic3= new Image(1,1); pic3.src="http://static.lnhost.co.cc/panel/alerts/vista_top_-x_xclick0.png"; pic4= new Image(1,1); pic4.src="http://static.lnhost.co.cc/panel/alerts/vista_top_-x_-hover0.png"; pic5= new Image(1,1); pic5.src="http://static.lnhost.co.cc/panel/alerts/vista_top_-x_-click0.png"; pic6= new Image(1,1); pic6.src="http://static.lnhost.co.cc/panel/taskbar_button_hover.png"; pic7= new Image(1,1); pic7.src="http://static.lnhost.co.cc/panel/taskbar_button_click.png"; pic8= new Image(1,1); pic8.src="http://static.lnhost.co.cc/panel/menu_2.png"; pic9= new Image(1,1); pic9.src="http://static.lnhost.co.cc/panel/menu_button_light.png"; pic10= new Image(1,1); pic10.src="http://static.lnhost.co.cc/panel/menu_button.png"; pic11= new Image(1,1); pic11.src="http://static.lnhost.co.cc/panel/tile bg hover.png"; pic12= new Image(1,1); pic12.src="http://static.lnhost.co.cc/panel/tile bg click.png"; } function show(id, bool) { if(bool) { min_all(); highlite(id,true); document.getElementById(id).style.display='block'; //document.getElementById('layer').style.display='block'; } else { highlite(id,false); document.getElementById(id).style.display='none'; //document.getElementById('layer').style.display='none'; } } function mouse(id, button, type, bool) { if(button=="close") { if(type=="hover") { if(bool) { document.getElementById("top"+id).style.backgroundImage='url(http://static.lnhost.co.cc/panel/alerts/vista_top_-x_xhover0.png)' } else { document.getElementById("top"+id).style.backgroundImage='url(http://static.lnhost.co.cc/panel/alerts/vista_top_-x.png)' } } if(type=="click") { if(bool) { document.getElementById("top"+id).style.backgroundImage='url(http://static.lnhost.co.cc/panel/alerts/vista_top_-x_xclick0.png)' } else { document.getElementById("top"+id).style.backgroundImage='url(http://static.lnhost.co.cc/panel/alerts/vista_top_-x.png)' } } } if(button=="min") { if(type=="hover") { if(bool) { document.getElementById("top"+id).style.backgroundImage='url(http://static.lnhost.co.cc/panel/alerts/vista_top_-x_-hover0.png)' } else { document.getElementById("top"+id).style.backgroundImage='url(http://static.lnhost.co.cc/panel/alerts/vista_top_-x.png)' } } if(type=="click") { if(bool) { document.getElementById("top"+id).style.backgroundImage='url(http://static.lnhost.co.cc/panel/alerts/vista_top_-x_-click0.png)' } else { document.getElementById("top"+id).style.backgroundImage='url(http://static.lnhost.co.cc/panel/alerts/vista_top_-x.png)' } } } } function popup_frame(title, url, pid) { document.getElementById('top'+pid).innerHTML=title; ajax_render(url,'GET',document.getElementById('frm'+pid)) addTaskbarItem(pid,title); show(pid, true); } function addTaskbarItem(id, title) { if(!inArray(TaskbarElems, 'TaskBar'+id)) { TaskbarElems.push('TaskBar'+id); document.getElementById('bar').innerHTML+="<a href=\"#\" onclick=\"show('"+id+"',true)\" id=\"TaskBar"+id+"\">"+title+"</a>"; } highlite(id,true); } function removeTaskbarItem(id) { TaskbarElems.splice(arrayPosition(TaskbarElems,'TaskBar'+id),1); rem=document.getElementById('TaskBar'+id); TaskBar.removeChild(rem); } TaskBar=document.getElementById('bar'); TaskbarElems=new Array(); function inArray(array, value) { var i; for (i=0; i < array.length; i++) { if (array == value) { return true; } } return false; } function arrayPosition(array, value) { var i; for (i=0; i < array.length; i++) { if (array == value) { return i; } } return false; } function highlite(id,bool) { if(bool) { document.getElementById('TaskBar'+id).style.backgroundImage='url(http://static.lnhost.co.cc/panel/taskbar_object_active.png)'; cZIndex++; document.getElementById(id).style.zIndex = cZIndex; } else { document.getElementById('TaskBar'+id).style.backgroundImage='url(http://static.lnhost.co.cc/panel/taskbar_object.png)'; } } function min_all() { var i; for(i=0; i < TaskbarElems.length; i++) { highlite(TaskbarElems.substr(7), false); } } </script> <!-- AJAX --> <script language="JavaScript"> function ajax_request() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } return xmlhttp; } function get_page(url) { page=new ajax_request(); page.open("GET",url,false); page.send(null); if (page.readyState == 4) { if (page.status == 200) { return page.responseText; } else { return "Server error: HTTP code "+page.status; } } else { return "Network Timeout"; } } function ajax_post(url,query) { loading=getBusyOverlay('viewport',{color:'black', opacity:0.8, text:'Vista panel is loading...', style:'text-shadow: 0 0 3px black;font-weight:bold;font-size:16px;color:white'},{color:'#ffffff', size:256, type:'o'}); page=new ajax_request(); page.open("POST",url,false); loading.remove(); return page.responseText; page.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); page.send(query); } function ajax_render(url,method,obj,params) { if(method=="window") { window.open(url,'','width=520,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,c opyhistory=no,resizable=no'); } else { pload=getBusyOverlay(obj,{color:'white', opacity:0.8, text:'Loading...', style:'font-weight:bold;font-size:16px;color:black'},{color:'#000000', size:32, type:'c'}); if(method=="GET") { page=new ajax_request(); page.open("GET",url,false); page.send(null); obj.innerHTML=page.responseText; } else if(method=="POST") { page=new ajax_request(); page.open("POST",url,true); page.onreadystatechange=function () { if(page.readystate=="4") { obj.innerHTML=page.responseText; } } page.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); page.send(query); } else { alert('Method not supported'); } } } </script> </body></html> <? exit; ?> I was editing a HUGE php-script
  3. Server Load 4.55 (4 cpus) (exclamation mark) My error log is completely empty, but that can be due to my website itself is down?! But I believe it said before something like this: 404 not found /500.shtml and then the useragent
  4. 1. This happens almost every day, today it started at 10:00 am. 2. Username: loginnet 3. domain: lnhost.co.cc (and subdomains) 4. All my php pages are giving errors (not always, but sometimes) e.g.: This (just phpinfo) It is really annoying, because I was writing some new code, but the problems have nothing to do with that. Also, deleting my .htaccess files didn't let the errors go away.
  5. Firefox says the page is a reported malware page. The page tried to install malware on my PC, luckily I have a good protection. I advice NOT TO CLICK THE LINKS ABOVE!!!
  6. Hi, I am getting Internal Server errors when I try to open any .php file. Nothing is wrong with my files, even <? phpinfo(); ?> doesn't work. Are you working on your servers? Sometimes php works, sometimes not. I hope you can fix this quick.
×
×
  • Create New...