⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sql2rss_install.php

📁 SQL to RSS > Html
💻 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 "&lt;?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?&gt;\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 + -