Xataface  2.0alpha2
Xataface Application Framework
 All Data Structures Namespaces Files Functions Variables Groups Pages
dataface_info.php
Go to the documentation of this file.
1 <?php
2 /*-------------------------------------------------------------------------------
3  * Xataface Web Application Framework
4  * Copyright (C) 2005-2008 Web Lite Solutions Corp (shannah@sfu.ca)
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  *-------------------------------------------------------------------------------
20  */
21 $checks = array();
22 
23 $dataface_path = dirname(__FILE__);
24 
25 if ( is_writable($dataface_path.'/Dataface/templates_c') ){
26  $installation_status = "INSTALLED CORRECTLY";
27 } else {
28  $installation_status = "Installation Incomplete: Please make the Dataface/templates_c directory writable by the web server";
29 }
30 
31 $version = file_get_contents($dataface_path.'/version.txt');
32 
33 
34 
35 
36 
37 ?>
38 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
39 <html><head>
40 <style type="text/css"><!--
41 body {background-color: #ffffff; color: #000000;}
42 body, td, th, h1, h2 {font-family: sans-serif;}
43 pre {margin: 0px; font-family: monospace;}
44 a:link {color: #000099; text-decoration: none; background-color: #ffffff;}
45 a:hover {text-decoration: underline;}
46 table {border-collapse: collapse;}
47 .center {text-align: center;}
48 .center table { margin-left: auto; margin-right: auto; text-align: left;}
49 .center th { text-align: center !important; }
50 td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;}
51 h1 {font-size: 150%;}
52 h2 {font-size: 125%;}
53 .p {text-align: left;}
54 .e {background-color: #ccccff; font-weight: bold; color: #000000;}
55 .h {background-color: #9999cc; font-weight: bold; color: #000000;}
56 .v {background-color: #cccccc; color: #000000;}
57 .vr {background-color: #cccccc; text-align: right; color: #000000;}
58 img {float: right; border: 0px;}
59 hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;}
60 //--></style>
61 <title>dataface_info()</title></head>
62 <body><div class="center">
63 <table border="0" cellpadding="3" width="600">
64 <tr class="h"><td>
65 <h1 class="p">Dataface <?php echo $version;?></h1>
66 <h2 class="p">Installed at <?php echo dirname($_SERVER['REQUEST_URI']); ?></h2>
67 </td></tr>
68 </table><br />
69 <table border="0" cellpadding="3" width="600">
70 <tr><td class="e">Installation status </td><td class="v"><?php echo $installation_status;?> </td></tr>
71 <tr><td class="e">Templates Dir</td><td class="v"><?php echo $dataface_path.'/Dataface/templates';?> </td></tr>
72 
73 <tr><td class="e">Templates Compile Dir </td><td class="v"><?php echo $dataface_path.'/Dataface/templates_c';?></td></tr>
74 
75 </table><br />
76 
77 <h2>Dataface License</h2>
78 <table border="0" cellpadding="3" width="600">
79 <tr class="v"><td>
80  <p>
81  Xataface Web Application Framework<br>
82  Copyright (C) 2005-2007 Steve Hannah, Web Lite Solutions Corporation
83  </p>
84  <p>
85  This program is free software; you can redistribute it and/or
86  modify it under the terms of the GNU General Public License
87  as published by the Free Software Foundation; either version 2
88  of the License, or (at your option) any later version.
89  </p>
90  <p>
91  This program is distributed in the hope that it will be useful,
92  but WITHOUT ANY WARRANTY; without even the implied warranty of
93  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
94  GNU General Public License for more details.
95  </p>
96  <p>
97  You should have received a copy of the GNU General Public License
98  along with this program; if not, write to the Free Software
99  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
100  </p>
101 </td></tr>
102 </table><br />
103 </div></body></html>