📄 sysedit.php
字号:
}}// end double-checking of some of the settings in config.inc.phpecho " <table width=100% border=0 cellpadding=0 cellspacing=0>\n";echo " <tr><th colspan=3 class=table_heading_no_color nowrap align=left>Edit System Settings</th></tr>\n";echo " <tr><td colspan=3 class=table_rows width=10% align=left style='padding-left:4px;'>Listed below are the settings that have been chosen within config.inc.php, the config file for PHP Timeclock. Edit as you see fit. Then click the \"Next\" button near the bottom of the page to continue.</td></tr>\n";echo " <tr><td height=40 class=table_rows width=10% align=left style='padding-left:4px;color:#27408b;'><b><u>VARIABLE</u></b></td> <td class=table_rows width=10% align=left style='color:#27408b;'><b><u>VALUE</u></b></td> <td class=table_rows width=80% align=left style='padding-left:10px;color:#27408b;'><b><u>DESCRIPTION</u></b></td></tr>\n";echo " <tr><th colspan=3 class=table_heading_no_color nowrap align=left>MySql DB Settings</th></tr>\n";echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>db_hostname:</td> <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top>$db_hostname</td> <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>This is the hostname for your mysql server, default is <b>localhost</b>.</td></tr>\n";echo " <input type=\"hidden\" name=\"db_hostname\" value=\"$db_hostname\">\n";$row_count++; $row_color = ($row_count % 2) ? $color2 : $color1;echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>db_name:</td> <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top>$db_name</td> <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>This is the name of the mysql database you created during the install.</td></tr>\n";echo " <input type=\"hidden\" name=\"db_name\" value=\"$db_name\">\n";$row_count++; $row_color = ($row_count % 2) ? $color2 : $color1;echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>db_username:</td> <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top>$db_username</td> <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>This is the mysql username you created during the install.</td></tr>\n";echo " <input type=\"hidden\" name=\"db_username\" value=\"$db_username\">\n";$row_count++; $row_color = ($row_count % 2) ? $color2 : $color1;echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>db_password:</td> <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top>********</td> <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>This is the mysql password for the username you created during the install.</td></tr>\n";echo " <input type=\"hidden\" name=\"db_password\" value=\"$db_password\">\n";$row_count++; $row_color = ($row_count % 2) ? $color2 : $color1;echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>db_prefix:</td> <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top>$db_prefix</td> <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>This adds a prefix to the tablenames in the database. This can be helpful if you have an existing mysql database that you would like to use with PHP Timeclock. If you are unaware of what is meant by 'table prefix', then please leave this option as is. Default is to leave it blank.</td></tr>\n";echo " <input type=\"hidden\" name=\"db_prefix\" value=\"$db_prefix\">\n";$row_count++; $row_color = ($row_count % 2) ? $color2 : $color1;echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>dbversion:</td> <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top>$dbversion</td> <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>This is the versioning number of the current database for PHP Timeclock.</td></tr>\n";echo " <input type=\"hidden\" name=\"dbversion\" value=\"$dbversion\">\n";$row_count = '0'; $row_color = ($row_count % 2) ? $color2 : $color1;echo " <tr><td nowrap style='border:solid #888888;border-width:0px 0px 1px 0px;' colspan=3> </td></tr>\n";echo " <tr><th colspan=3 class=table_heading_no_color nowrap align=left>Passwords and Security</th></tr>\n";echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>use_passwd:</td>\n";if ($use_passwd == "yes") {echo " <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"use_passwd\" value=\"1\" checked /> Yes<input type=\"radio\" name=\"use_passwd\" value=\"0\" /> No</td>\n";} elseif ($use_passwd == "no") {echo " <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"use_passwd\" value=\"1\" /> Yes<input type=\"radio\" name=\"use_passwd\" value=\"0\" checked /> No</td>\n";} else {echo " <td bgcolor='$row_color' class=table_rows_red width=10% align=left valign=top><b>\"Yes\" or \"No\" has not been chosen in config.inc.php</b></td>\n";echo " <input type=\"hidden\" name=\"use_passwd\" value=\"2\">\n";}echo " <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>This provides the option for the users to input their password when individually punching in/out of the timeclock. Default is \"<b>no</b>\".</td></tr>\n";$row_count++; $row_color = ($row_count % 2) ? $color2: $color1;echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>use_reports_password:</td>\n";if ($use_reports_password == "yes") {echo " <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"use_reports_password\" value=\"1\" checked /> Yes<input type=\"radio\" name=\"use_reports_password\" value=\"0\" /> No</td>\n";} elseif ($use_reports_password == "no") {echo " <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"use_reports_password\" value=\"1\" /> Yes<input type=\"radio\" name=\"use_reports_password\" value=\"0\" checked /> No</td>\n";} else {echo " <td bgcolor='$row_color' class=table_rows_red width=10% align=left valign=top><b>\"Yes\" or \"No\" has not been chosen in config.inc.php</b></td>\n";echo " <input type=\"hidden\" name=\"use_reports_password\" value=\"2\">\n";}echo " <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>If ALL users need access to ALL the reports provided, then set this to \"no\". Default is \"<b>no</b>\".</td></tr>\n";$row_count = '0'; $row_color = ($row_count % 2) ? $color2 : $color1;echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>restrict_ips:</td>\n";if ($restrict_ips == "yes") {echo " <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"restrict_ips\" value=\"1\" checked /> Yes<input type=\"radio\" name=\"restrict_ips\" value=\"0\" /> No</td>\n";} elseif ($restrict_ips == "no") {echo " <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"restrict_ips\" value=\"1\" /> Yes<input type=\"radio\" name=\"restrict_ips\" value=\"0\" checked /> No</td>\n";} else {echo " <td bgcolor='$row_color' class=table_rows_red width=10% align=left valign=top><b>\"Yes\" or \"No\" has not been chosen in config.inc.php</b></td>\n";echo " <input type=\"hidden\" name=\"restrict_ips\" value=\"2\">\n";}echo " <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>Choose \"yes\" to restrict the ip addresses that can connect to PHP Timeclock. If \"yes\" is chosen, you MUST input the allowed networks in the allowed_networks array below. Otherwise, choosing \"yes\" here and leaving allowed_networks blank will cause PHP Timeclock to reject everyone attempting to connect to it. Default is \"<b>no</b>\".</td></tr>\n";$row_count++; $row_color = ($row_count % 2) ? $color2: $color1;echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>allowed_networks:</td> <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top>\n";if ($allowed_networks == "none") { $allowed_networks = "0";}for ($x=0;$x<count($allowed_networks);$x++) {if (empty($allowed_networks[$x])) { echo " <input type=\"text\" size=\"21\" maxlength=\"21\" name=\"allowed_networks[$x]\" />\n";} else { echo " <input type=\"text\" size=\"21\" maxlength=\"21\" name=\"allowed_networks[$x]\" value=\"$allowed_networks[$x]\" />\n";}}if (count($allowed_networks) < '5') {for($x=count($allowed_networks);$x<'5';$x++) {echo " <input type=\"text\" size=\"21\" maxlength=\"21\" name=\"allowed_networks[$x]\" />\n";}}echo " </td>\n";echo " <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>These are the networks or ip addresses you wish to allow to connect to PHP Timeclock. This will currently only work for ipv4 addresses, ipv6 may be supported in a future release. If <b>restrict_ips</b> is set to \"<b>no</b>\", this option is ignored. To add more than 5 networks, you will need to add them manually in config.inc.php.<p> <b><u>examples that will work</u></b>:<br>10.0.0.4<br>192.168.1.[11-20]<br>192.168.1.0/24<br>192.0.0.0/8<br><br> <b><u>examples that will NOT work</u></b>:<br>10.1.1.15[0-9]<br>10.1.1.1 - 10.1.1.254<br>10.1.1.</p><br></td></tr>\n";$row_count++; $row_color = ($row_count % 2) ? $color2 : $color1;echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>ip_logging:</td>\n";if ($ip_logging == "yes") {echo " <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"ip_logging\" value=\"1\" checked /> Yes<input type=\"radio\" name=\"ip_logging\" value=\"0\" /> No</td>\n";} elseif ($ip_logging == "no") {echo " <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"ip_logging\" value=\"1\" /> Yes<input type=\"radio\" name=\"ip_logging\" value=\"0\" checked /> No</td>\n";} else {echo " <td bgcolor='$row_color' class=table_rows_red width=10% align=left valign=top><b>\"Yes\" or \"No\" has not been chosen in config.inc.php</b></td>\n";echo " <input type=\"hidden\" name=\"ip_logging\" value=\"2\">\n";}echo " <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>Enable the option to log the ip addresses of the connecting computers when users punch-in/out, or when a time is manually added, edited, or deleted. Default is \"<b>yes</b>\".</td></tr>\n";$row_count++; $row_color = ($row_count % 2) ? $color2 : $color1;echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>disable_sysedit:</td>\n";if ($disable_sysedit == "no") {echo " <td bgcolor='$row_color' class=table_rows width=10% align=left valign=top><input type=\"radio\" name=\"disable_sysedit\" value=\"1\" /> Yes<input type=\"radio\" name=\"disable_sysedit\" value=\"0\" checked /> No</td>\n";} else {echo " <td bgcolor='$row_color' class=table_rows_red width=10% align=left valign=top><b>\"Yes\" or \"No\" has not been chosen in config.inc.php</b></td>\n";echo " <input type=\"hidden\" name=\"disable_sysedit\" value=\"2\">\n";}echo " <td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>Choosing \"yes\" disables ALL access to <u>this</u> page (sysedit.php). It can be re-enabled in config.inc.php. Default is \"<b>no</b>\".</td></tr>\n";$row_count = '0'; $row_color = ($row_count % 2) ? $color2 : $color1;echo " <tr><td nowrap style='border:solid #888888;border-width:0px 0px 1px 0px;' colspan=3> </td></tr>\n";echo " <tr><th colspan=3 class=table_heading_no_color align=left>Dates and Times</th></tr>\n";echo " <tr><td colspan=3 class=table_rows width=10% align=left style='padding-left:4px;'>Choose the way dates and times are to be
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -