?? sql2rss_install.php
字號:
<?php//// sql2rss.php RSS feed generation from SQL Sample Configuration//// Copyright 2006-2007 NotePage, Inc.// http://www.feedforall.com//// NotePage, Inc. grants registerd users of our FeedForAll and/or// FeedForAll Mac product(s) the right to install and use the// sql2rss.php script free of charge.// Please refer to the EULA included in the download for full license// terms and conditions.//// $Id: sql2rss_install.php,v 3.0 2007/04/16 14:23:05 housley Exp $//$config = Array();echo "<HTML>\n<HEAD></HEAD>\n<BODY bgcolor=\"#EEEEFF\">\n";if (isset($_POST["submit"])) { if ($_SERVER['REQUEST_METHOD'] != "POST") { exit; } $config["DBuser"] = $_POST["DBuser"]; $config["DBpassword"] = $_POST["DBpassword"]; $config["DBmachine"] = $_POST["DBmachine"]; $config["DBdatabase"] = $_POST["DBdatabase"]; $config["DBtype"] = "mysql"; echo "Copy between the dividers below and save as the configuration file. The file must end in \".php\", to be process properly and to prevent the contents of the file from being viewed by accessing the website.<br>\n"; echo "<br>================= Start of file =================\n"; echo "<pre>\n"; echo "<?php\n\n"; echo "\$config[\"DBuser\"]= \"$_POST[DBuser]\";\n"; echo "\$config[\"DBpassword\"] = \"$_POST[DBpassword]\";\n"; echo "\$config[\"DBmachine\"] = \"$_POST[DBmachine]\";\n"; echo "\$config[\"DBdatabase\"] = \"$_POST[DBdatabase]\";\n"; echo "\$config[\"DBtype\"] = \"mysql\";\n"; echo "\n"; echo "\n?>\n"; echo "</pre>\n"; echo "================== End of file ==================<br><br>\n"; exit(0);}echo "<p>Fillin the following information and click \"Submit\" to create the database configuration file that will be used by sql2rss.php</p>\n";echo "<table width=\"100%\" border=\"0\">\n";echo "<FORM ACTION=\"$PHP_SELF\" METHOD=\"POST\">\n";echo "<tr><th valign=\"top\">Username</th><td>The username to access your database. The database will only be read from, so a username with read only access is ideal.<br>";echo "<INPUT TYPE=\"TEXT\" NAME=\"DBuser\" VALUE=\"";if (isset($config["DBuser"])) { echo $config["DBuser"];}echo "\" SIZE=\"32\" MAXLENGTH=\"64\"></td></tr>\n";echo "<tr><th valign=\"top\">Password</th><td>The password, for the above username, to access the database<br>";echo "<INPUT TYPE=\"TEXT\" NAME=\"DBpassword\" VALUE=\"";if (isset($config["DBpassword"])) { echo $config["DBpassword"];}echo "\" SIZE=\"32\" MAXLENGTH=\"64\"></td></tr>\n";echo "<tr><th valign=\"top\">Database Machine</th><td>The domain name of the machine your database is on. If it is the same machine as your webserver then use \"localhost\".<br>";echo "<INPUT TYPE=\"TEXT\" NAME=\"DBmachine\" VALUE=\"";if (isset($config["DBmachine"])) { echo $config["DBmachine"];}echo "\" SIZE=\"32\" MAXLENGTH=\"64\"></td></tr>\n";echo "<tr><th valign=\"top\">Database Name</th><td>The name of the database with your information.<br>";echo "<INPUT TYPE=\"TEXT\" NAME=\"DBdatabase\" VALUE=\"";if (isset($config["DBdatabase"])) { echo $config["DBdatabase"];}echo "\" SIZE=\"32\" MAXLENGTH=\"64\"></td></tr>\n";echo "<tr><td colspan=\"2\"><INPUT TYPE=\"SUBMIT\" NAME=\"submit\" VALUE=\"SUBMIT\"></td></tr>\n";echo "</FORM>\n";echo "</table>\n";echo "</BODY>\n</HTML>\n";?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -