Menu

[r9]: / administration / systeminfo.php  Maximize  Restore  History

Download this file

242 lines (200 with data), 6.5 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<?php
/*
** Application name: phpCollab
** Last Edit page: 2003-10-23
** Path by root: ../administration/systeminfo.php
** Authors: Ceam / Fullo
**
** =============================================================================
**
** phpCollab - Project Managment
**
** -----------------------------------------------------------------------------
** Please refer to license, copyright, and credits in README.TXT
**
** -----------------------------------------------------------------------------
** FILE: systeminfo.php
**
** DESC: Screen: System information and php library
**
** HISTORY:
** 2003-10-23 - added new document info
** -----------------------------------------------------------------------------
** TO-DO:
**
**
** =============================================================================
*/
$checkSession = "true";
include_once('../includes/library.php');
if ($profilSession != "0")
{
headerFunction('../general/permissiondenied.php?'.session_name().'='.session_id());
exit;
}
$setTitle .= " : System Information";
include('../themes/'.THEME.'/header.php');
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?",$strings["administration"],in));
$blockPage->itemBreadcrumbs($strings["system_information"]);
$blockPage->closeBreadcrumbs();
$block1 = new block();
$block1->heading($strings["system_information"]);
$block1->openContent();
$block1->contentTitle($strings["product_information"]);
$block1->contentRow("PhpCollab Version",$version);
$block1->contentRow("File Management",$fileManagement." (default max file size $maxFileSize $byteUnits[0])");
if ($mkdirMethod == "FTP")
{
$mkdirMethodMore = " (Path to root with mentionned account: \"$ftpRoot\")";
}
$block1->contentRow("Create folder method",$mkdirMethod.$mkdirMethodMore);
$block1->contentRow("Theme",THEME);
$block1->contentRow("Product Site Publish",$sitePublish);
$block1->contentRow("Notifications",$notifications);
$block1->contentRow("Root",$root);
if ($useLDAP == "true")
{
$loginMethodMore = " + LDAP";
}
$block1->contentRow("Login Method",$loginMethod.$loginMethodMore);
if ($databaseType == "mysql")
{
$databaseTypeMore = "MySql";
$link = mysql_connect(MYSERVER,MYLOGIN,MYPASSWORD) or die("Connection impossible");
$local_query = "SELECT VERSION() as version";
$res = mysql_query($local_query,$link);
$databaseVersion = mysql_result($res, 0, 'version');
}
if ($databaseType == "postgresql")
{
$databaseTypeMore = "PostgreSQL";
$link = pg_connect("host=".MYSERVER." port=5432 dbname=".MYDATABASE." user=".MYLOGIN." password=".MYPASSWORD);
$local_query = "SELECT VERSION() as version";
$res = pg_query($link,$local_query);
$databaseVersion = pg_result($res, 0, 'version');
}
if ($databaseType == "sqlserver")
{
$databaseTypeMore = "Sql Server";
$link = mssql_connect(MYSERVER,MYLOGIN,MYPASSWORD) or die("Connection impossible");
$local_query = "SELECT @@version as version";
$res = mssql_query($local_query,$link);
$databaseVersion = mssql_result($res, 0, 'version');
}
$block1->contentRow("Database Type",$databaseTypeMore);
$block1->contentRow("Files folder size",convertSize(folder_info_size("../files/")));
$block1->contentTitle($strings["system_properties"]);
$block1->contentRow("PHP Version",phpversion()." ".$blockPage->buildLink("../administration/phpinfo.php?","PhpInfo",inblank));
$block1->contentRow($databaseTypeMore." version",$databaseVersion);
$block1->contentRow("extension_dir",ini_get(extension_dir));
$ext = get_loaded_extensions();
$comptExt = count($ext);
for ($i=0;$i<$comptExt;$i++)
{
$extensions .= "$ext[$i]";
if ($i != $comptExt-1)
{
$extensions .= ', ';
}
}
$block1->contentRow("Loaded extensions",$extensions);
$include_path = ini_get(include_path);
if ($include_path == "")
{
$include_result = "<i>No value</i>";
}
else
{
$include_result = $include_path;
}
$block1->contentRow("include_path",$include_result);
$register_globals = ini_get(register_globals);
if ($register_globals == "1")
{
$register_result = "On";
}
else
{
$register_result = "Off";
}
$block1->contentRow("register_globals",$register_result);
$magic_quotes_gpc = ini_get(magic_quotes_gpc);
if ($magic_quotes_gpc == "1")
{
$magic_gpc_result = "On";
}
else
{
$magic_gpc_result = "Off";
}
$block1->contentRow("magic_quotes_gpc",$magic_gpc_result);
$magic_quotes_runtime = ini_get(magic_quotes_runtime);
if ($magic_quotes_runtime == "1")
{
$magic_runtime_result = "On";
}
else
{
$magic_runtime_result = "Off";
}
$block1->contentRow("magic_quotes_runtime",$magic_runtime_result);
$safemodeTest = ini_get(safe_mode);
if ($safemodeTest == "1")
{
$safe_mode_result = "On";
}
else
{
$safe_mode_result = "Off";
}
$block1->contentRow("safe_mode",$safe_mode_result);
$notificationsTest = function_exists('mail');
if ($notificationsTest == "true")
{
$mail_result = "On";
}
else
{
$mail_result = "Off";
}
$block1->contentRow("Mail",$mail_result);
$gdlibraryTest = function_exists('imagecreate');
if ($gdlibraryTest == "true")
{
ob_start();
phpinfo();
$buffer = ob_get_contents();
ob_end_clean();
preg_match("|<b>GD Version</b></td><td align=\"left\">([^<]*)</td>|i", $buffer, $matches);
preg_match("|GD Version </td><td class=\"v\">([^<]*)</td>|i", $buffer, $matches);
preg_match("|GD Version</B></td><TD ALIGN=\"left\">([^<]*)</td>|i", $buffer, $matches);
$gd_result = "On";
}
else
{
$gd_result = "Off";
}
$block1->contentRow("GD",$gd_result);
if ($matches[1] != "")
{
$block1->contentRow("GD version",$matches[1]);
}
$block1->contentRow("SMTP",ini_get(SMTP));
$block1->contentRow("upload_max_filesize",ini_get(upload_max_filesize));
$block1->contentRow("session.name",session_name());
$block1->contentRow("session.save_path",session_save_path());
$block1->contentRow("HTTP_HOST",returnGlobal('HTTP_HOST','SERVER'));
if (substr(PHP_OS,0,3) == "WIN") {
$block1->contentRow("PATH_TRANSLATED",stripslashes(returnGlobal('PATH_TRANSLATED','SERVER')));
} else {
$block1->contentRow("PATH_TRANSLATED",returnGlobal('PATH_TRANSLATED','SERVER'));
}
$block1->contentRow("SERVER_NAME",returnGlobal('SERVER_NAME','SERVER'));
$block1->contentRow("SERVER_PORT",returnGlobal('SERVER_PORT','SERVER'));
$block1->contentRow("SERVER_SOFTWARE",returnGlobal('SERVER_SOFTWARE','SERVER'));
$block1->contentRow("SERVER_OS",PHP_OS);
$block1->closeContent();
include('../themes/'.THEME.'/footer.php');
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.