Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00037
00038
00039
00040
00041 require_once ('.'.DATEPLANER_ROOT_DIR.'/classes/class.Database.php');
00042
00043 $DB = new database($DP_dlI);
00044 require_once ('.'.DATEPLANER_ROOT_DIR.'/classes/class.Gui.php');
00045
00046 $Gui = new Gui();
00047 require_once ('.'.DATEPLANER_ROOT_DIR.'/classes/class.TimestampToDate.php');
00048
00049
00050
00051
00052
00053
00054 require_once ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.keywords.php');
00055
00056 require_once ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.sortdates.php');
00057
00058 require_once ('.'.DATEPLANER_ROOT_DIR.'/includes/inc.minicalendar.php');
00059
00060
00061
00062
00063
00064
00068 if (!session_is_registered("DP_ScreenHeight") or !session_is_registered("DP_ScreenWith"))
00069 {
00070 session_start ();
00071 $SidName = session_name();
00072 $sid = session_id();
00073 echo '
00074 <script language="JavaScript" >
00075 var width = screen.width;
00076 var height = screen.height;
00077 var SidName = \''.$SidName.'\';
00078 var sid = \''.$sid.'\';
00079 var JSscript = \'1\';
00080 if(location.search.indexOf("ScreenHeight") == -1) {
00081 location = "." + "/dateplaner.php?app=inbox&ScreenHeight=" + height + "&ScreenWith=" + width + "&" + SidName + "=" + sid + "&JSscript=" + JSscript;
00082 }
00083 </script>
00084 ';
00085
00086 session_register("DP_JSscript");
00087
00088 $DP_JSscript = $_GET[JSscript] ;
00089 if($_GET[ScreenWith]) {
00090 session_register("DP_ScreenWith");
00091 $_SESSION["DP_ScreenWith"] = $_GET[ScreenWith] ;
00092 $_SESSION["DP_ScreenHeight"]= $_GET[ScreenHeight] ;
00093 $_SESSION["DP_JSscript"] = $_GET[JSscript] ;
00094 }else {
00095 $_SESSION["DP_JSscript"] = 0 ;
00096 }
00097 }
00098 ?>