diff options
| author | Eric Johansson (neku) <neku@pomf.se> | 2015-04-23 21:55:13 +0200 |
|---|---|---|
| committer | Eric Johansson (neku) <neku@pomf.se> | 2015-04-23 21:55:13 +0200 |
| commit | acb284ee051a4cf594b06b2b602bbff5ce4855c7 (patch) | |
| tree | efb9e7e75560b08dbea472964d00c70b4197b597 /moe/panel | |
| parent | 0773dd1239b9e2023bd7dcb249dfcafb0c857289 (diff) | |
Update index.php
Diffstat (limited to 'moe/panel')
| -rw-r--r-- | moe/panel/index.php | 56 |
1 files changed, 1 insertions, 55 deletions
diff --git a/moe/panel/index.php b/moe/panel/index.php index 8b959bf..1c0cc6b 100644 --- a/moe/panel/index.php +++ b/moe/panel/index.php @@ -25,7 +25,7 @@ <!-- Nav --> <nav id="nav"> <a href="#me" class="fa fa-home active"><span>Home</span></a> - <a href="#files" class="fa fa-folder"><span>Files</span></a> + <a href="ghetto-search.php" class="fa fa-folder"><span>Files</span></a> <a href="http://twitter.com/nekunekus" target="_BLANK" class="fa fa-twitter"><span>Twitter</span></a> </nav> @@ -39,9 +39,6 @@ if(!isset($_SESSION['id'])){ header('Location: ../login/'); } - if($_SESSION['id'] == '1'){ - header('Location: ../mod/'); - } echo 'Hi '.$_SESSION['email'];?></h1> <span class="byline">Are you being cayoot today?</span> </header> @@ -49,57 +46,6 @@ <img src="images/cute.png" alt="" /> </a> </article> - - <!-- Work --> - <article id="files" class="panel"> - <header> - <h2>Files</h2> - </header> - <p>Search for any file by orginal name, extension or new name, each search is limited to 5 results for now. Later on this will only show your files and you will be able to delete them and whatnot.</p> - - <script type="text/javascript"> -//<![CDATA[ - -function showResult(str) -{ -if (str.length==0) -{ -document.getElementById("livesearch").innerHTML=""; -document.getElementById("livesearch").style.border="0px"; -return; -} -if (window.XMLHttpRequest) -{// code for IE7+, Firefox, Chrome, Opera, Safari -xmlhttp=new XMLHttpRequest(); -} -else -{ -// code for IE6, IE5 -xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); -} -xmlhttp.onreadystatechange=function() -{ -if (xmlhttp.readyState==4 && xmlhttp.status==200) -{ -document.getElementById("livesearch").innerHTML=xmlhttp.responseText; -document.getElementById("livesearch").style.border="1px solid #A5ACB2"; -} -} -xmlhttp.open("GET","../includes/api.php?do=search&q="+str,true); -xmlhttp.send(); -} -//]]> -</script> -<form> -<table border="0"> -<tr><td>File Search:</td> -<td><input type="text" size="15" onKeyUp="showResult(this.value)"></td> -</tr> -</table> -<div id="livesearch"></div> -</form> - - </div> <!-- Footer --> <div id="footer"> |
