Location: PHPKode > projects > PHP-OS > PHP-OS BetaV2/index2.php
<?php
include('includes.php');

if($_GET['login']==1){echo'<embed src="musik/loginton.mp3" autostart="true" loop="false" hidden="true">';}
if(isLogin()==false){
echo' <style type="text/css">
body{margin-left: auto;
    margin-right: auto;

line-height:250%;width:auto;margin:1em 20%;text-align: left;
</style>';
$logout=$_GET['logout'];
if($logout==1) {
echo'<embed src="musik/logoutton.mp3" autostart="true" loop="false" hidden="true">';}
echo'<link rel="stylesheet" type="text/css" href="style.css" />';
echo'<form action="login.php" method="POST">
<div class="text"><table><tr><td>'.$spr[Username].':<input name="username" type="text"></td></tr>
							   <tr><td>'.$spr[Password].':<input name="password"  type="password"></td></tr>
							   <tr><th colspan="2"><input  type="submit" value="Login"></th></tr></table>
							   </div>
							   </form>';
} else {


echo"
<script type='text/javascript'>	
		function startFunctions(){
	updateTime();
	generateDesktop();
	}
	</script>

<script type='text/javascript' id='windowsettings'>	
			
			$(function(){
				// Datepicker
				$('#datepicker').datepicker();
				
				
				
				$('#ownFiles').dialog({
				autoOpen: false,
				title: '".$spr[windowOwnFiles]."',
				width:600});
				$('#workspace').dialog({
				autoOpen: false,
				title: '".$spr[windowWorkspace]."',
				width:600});
				$('#systemsettings').dialog({
				autoOpen: false,
				title: '".$spr[windowSystemSettings]."',
				width:600});
				
				
				
			});
			
			
		</script>";
echo'
<body onload="startFunctions()">
<div style="display:none;" id="windowsself">
</div>
<div id="desktop">


</div>
<div id="startsite" style="display:none;" class="startsite"><div class="startSiteFunctions"><a class="logout" href="logout.php">'.$spr[startSiteLogout].'</a></div></div>
<div class="leiste"><a href="javascript: showStartSite()" ><img src="bilder/start.png"><a href="javascript:generateDesktop()" ><img src="bilder/reload.png"></a><div class="time" id="time"></div></div></body>';
}							   
Return current item: PHP-OS