All pastes #759626 Raw Edit

Virtual-OS 2007 Alpha 6

public php v1 · immutable
·published 2007-11-03 10:53 UTC
rendered paste body
<?php # Virtual-OS 2007  Alpha 6.0 Firefox# ADAPTIVE WEB FRAMEWORK VERSION 1.0//http://www.advanced-webhosting.net# INITIALIZE XML APPLICATION if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")  || stristr($_SERVER["HTTP_USER_AGENT"],"W3C_Validator") ){	 header("Content-type: application/xhtml+xml");	 header("Vary: Accept");	 echo("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");} else {	 header("Content-type: text/html");	 header("Vary: Accept");}# BEGIN XHTML FRAMEWORK?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-type" content="text/html; charset=utf-8" /><title>Virtual-OS &bull; 2007</title><?php # Custom Prototype Build Revision 5773 # Scriptaculous Build 1.7 Beta    $clientside = "./system/javascripts/";	  $jscript = "<script type=\"text/javascript\" language=\"javascript\" \n src=\"";   	  $jsclose = "\"> </script>\n";	   $system = "./system/javascripts/";    $prototype = "http://dev.rubyonrails.org/svn/rails/spinoffs/prototype/trunk/src/";$scriptaculous = "http://dev.rubyonrails.org/svn/rails/spinoffs/scriptaculous/src/";   $javascript = array (	   $system . 'prototype.js',	$prototype . 'base.js',	$prototype . 'string.js',	$prototype . 'enumerable.js',	$prototype . 'array.js', 	$prototype . 'hash.js', 	$prototype . 'range.js',	$prototype . 'ajax.js',	$prototype . 'dom.js', 	$prototype . 'selector.js',	$prototype . 'form.js',	$prototype . 'event.js',	$prototype . 'position.js', $scriptaculous . 'scriptaculous.js',$scriptaculous . 'builder.js',$scriptaculous . 'controls.js',$scriptaculous . 'dragdrop.js',$scriptaculous . 'effects.js',$scriptaculous . 'javascripttest.rb',$scriptaculous . 'slider.js',$scriptaculous . 'unittest.js',  	   $system . 'window.js',	   $system . 'application.js',	   $system . 'pngfix.js',	   $system . 'core.js',	   $system . 'debug.js');		  $src = 0;		$check = "virtual-os";do{ 		if ($check==""){}else{	   $output = $jscript.$javascript[$src].$jsclose;  echo $output;}			$check = $javascript[$src];		$src   = $src+1;	}while ($check!="");# Virtual-OS Interface Skins $clientside ="./resources/themes/";# Distro Server$svnserver = "http://themes.advanced-webhosting.net/";$cssheet = "<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\"\n title=\"css\" href=\"";$cssclose = "\" />\n";$stylesheet = array (	'default.css',	'alphacube.css',	'virtual_os.css',	'alert.css',	'debug.css');$src=0;do{ echo $cssheet.$clientside.$stylesheet[$src].$cssclose;$check = $stylesheet[$src];$src=$src+1;}while ($check!="");# phpBB Interface Skins $clientside ="./chat/styles/subSilver/theme/";# Distro Server$svnserver = "http://phpbb.com/forum/styles/subSilver/theme/";?><link rel="stylesheet" type="text/css" media="screen"title="css" href="<?php echo $clientside; ?>stylesheet.css" />?><style type="text/css">.drag{position:relative;cursor:hand;z-index: 100;}</style><script type="text/javascript">var dragobject={z: 0, x: 0, y: 0, offsetx : null, offsety : null, targetobj : null, dragapproved : 0,initialize:function(){document.onmousedown=this.dragdocument.onmouseup=function(){this.dragapproved=0}},drag:function(e){var evtobj=window.event? window.event : ethis.targetobj=window.event? event.srcElement : e.targetif (this.targetobj.className=="drag"){this.dragapproved=1if (isNaN(parseInt(this.targetobj.style.left))){this.targetobj.style.left=0}if (isNaN(parseInt(this.targetobj.style.top))){this.targetobj.style.top=0}this.offsetx=parseInt(this.targetobj.style.left)this.offsety=parseInt(this.targetobj.style.top)this.x=evtobj.clientXthis.y=evtobj.clientYif (evtobj.preventDefault)evtobj.preventDefault()document.onmousemove=dragobject.moveit}},moveit:function(e){var evtobj=window.event? window.event : eif (this.dragapproved==1){this.targetobj.style.left=this.offsetx+evtobj.clientX-this.x+"px"this.targetobj.style.top=this.offsety+evtobj.clientY-this.y+"px"return false}}}dragobject.initialize()/* AJAX Navigation Port   http://jibbering.com/2002/4/httprequest.html   to serve IE7 with XMLHttpRequest instead of ActiveX */var xmlhttp=false;if (!xmlhttp && typeof XMLHttpRequest!='undefined') { 	try { 		 xmlhttp = new XMLHttpRequest(); 	} catch (e) { 		 xmlhttp=false; 	}}/*@cc_on @*//*@if (@_jscript_version >= 5)// JScript gives us Conditional compilation, we can cope with old IE versions.// and security blocked creation of the objects.if (!xmlhttp){ try {  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {  try {   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");  } catch (E) {   xmlhttp = false;  } }}@end @*/if (!xmlhttp && window.createRequest) {	try {		xmlhttp = window.createRequest();	} catch (e) {		xmlhttp=false;	}}/* Virtual-OS version of:   http://javascript.internet.com/ajax/ajax-navigation.html */var please_wait = "Please wait...";function open_url(url, targetId) {  if(!xmlhttp)return false;    var e=document.getElementById(targetId);if(!e)return false;    if(please_wait)e.innerHTML = please_wait;    xmlhttp.open("GET", url, true);    xmlhttp.onreadystatechange = function() { response(url, e); }    try{      xmlhttp.send(null);    }catch(l){    while(e.firstChild)e.removeChild(e.firstChild);//e.innerHTML="" the standard way    e.appendChild(document.createTextNode("request failed"));  }}function response(url, e) {  if(xmlhttp.readyState != 4)return;    var tmp= (xmlhttp.status == 200 || xmlhttp.status == 0) ? xmlhttp.responseText : "Ooops!! A broken link! Please contact the webmaster of this website ASAP and give him the following error code: " + xmlhttp.status+" "+xmlhttp.statusText;    var d=document.createElement("div");    d.innerHTML=tmp;    setTimeout(function(){      while(e.firstChild)e.removeChild(e.firstChild);//e.innerHTML="" the standard way      e.appendChild(d);    },10)}</script><style type="text/css" media="screen" title="css">body{/*	background:#000000 url(../resources/wallpaper/grey.png) no-repeat top center fixed;  */ background:#000000 url(http://art.gnome.org/download/backgrounds/nature/2943/NATURE-GreenGNOMENoLogo_1600x1200.jpg) no-repeat top center fixed;	margin:0px; 	margin-left:0px;	margin-top:0px;}a{ text-decoration:none; color:#00ff00; }body{ font-family:fixedsys; color:#FFFFFF; }div.bootscreen {align:center; }</style>	<script type="text/javascript" language="JavaScript">			window.onload = login;			function login(){				login = new Window('login', {className: "alphacube", title: 'Welcome to Virtual-OS', url:"http://virtual-os.com/chat/ucp.php?mode=login", width:640, height:480, resizable:true, closable:true, minimizable:false, maximizable:false});				login.setDestroyOnClose();				login.showCenter();			}			function startBrim(app, title, postW, postH, closableV, minimizableV, maximizableV, resizableV){				var postW;				var postH;				var closableV;				var minimizableV;				var maximizableV;							var resizableV;							if(!postW){ postW = '540'; }				if(!postH){ postH = '300'; }				win = new Window(Application.getNewId(), {className: "alphacube", showProgress: true, url:"http://www.virtual-os.com/brim/index.php?plugin="+app, title: title, width:postW, height:postH, closable:closableV, minimizable:minimizableV, maximizable:maximizableV, resizable:resizableV});				win.setDestroyOnClose();				win.showCenter(); 			}			function start(app, title, postW, postH, closableV, minimizableV, maximizableV, resizableV){				var postW;				var postH;				var closableV;				var minimizableV;				var maximizableV;							var resizableV;									if(!postW){ postW = '540'; }				if(!postH){ postH = '300'; }				win = new Window(Application.getNewId(), {className: "alphacube", showProgress: true, url:"http://www.virtual-os.com/index.php?exe="+app, title: title, width:postW, height:postH, closable:closableV, minimizable:minimizableV, maximizable:maximizableV, resizable:resizableV});				win.setDestroyOnClose();				win.showCenter(); 			}function startmenu(){			win = new Window('dialog1', {className: "alphacube",  top:20, right:20, width:200, height:400, zIndex: 100, resizable: true, title: "Virtual-OS", showEffect:Element.show, hideEffect: Effect.SwitchOff, draggable:false});	win.getContent().innerHTML= "<div style='padding:10px'><H2>MENU</H2><HR></div>";	win.setDestroyOnClose();	win.showCenter();		}</script></head><body onload=javascript:login;"><div name='workspace' style='width:100%; height:95%; border:none 0px;'><?php include ('desktop.php'); ?></div></body></html>