function showSettingsform() { $realname = getRealName(); $sitename = getSiteName(); $tagline = getTagline(); $rawsiteurl = getRawSiteUrl(); $indexNum = getIndexNum(); $rssNum = getRssNum(); $rewriteCheck = getrewriteCheck(); if ($rewriteCheck == 1) { $checked = "checked"; } else { $checked = ""; } echo "<p><b>general site settings:</b></p>"; echo "<form action=\""; echo $_SERVER['PHP_SELF']; echo "\""; echo " method=\"post\">"; echo "user: <input type=\"text\" name=\"user\"><br />"; echo "pass: <input type=\"password\" name=\"pass\"><br />"; echo "real name: <input type=\"text\" name=\"realname\" value=\"" . $realname . "\"><br />"; echo "name of site: <input type=\"text\" name=\"site\" value=\"" . $sitename . "\"><br />"; echo "tagline for site: <input type=\"text\" name=\"tagline\" value=\"" . $tagline . "\"><br />"; echo "base url (without http://): <input type=\"text\" name=\"url\" value=\"" . $rawsiteurl . "\"><br />"; echo "number of entries to display per page: <input type=\"text\" name=\"index\" value=\"" . $indexNum . "\"><br />"; echo "number of entries to display in rss feed: <input type=\"text\" name=\"rss\" value=\"" . $rssNum . "\"><br />"; echo "use mod_rewrite? (remove .htaccess if you uncheck this): <input type=\"checkbox\" name=\"rewrite\" value=\"1\" " . $checked . "><br />"; echo "<input type=\"hidden\" name=\"checksubmit\" value=\"1\">"; echo "<input type=\"submit\" name=\"submit\" value=\"update\">"; echo "</form>"; }
<?php include_once "db.php"; include_once "dertyn.php"; $siteurl = getSiteUrl(); $tagline = getTagline(); $rewriteCheck = getrewriteCheck(); $id = $_GET['id']; $numEntries = getIndexNum(); $pagenum = 1; if ($rewriteCheck == 1) { $pid = getPid($id); } else { $pid = $id; } if ($id) { $subject = getSubject($pid); $title = "{$subject} - {$sitename}"; $description = getArticleDesc($pid); } else { $title = $sitename; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title><?php echo "{$title}"; ?>
function showSettingsform() { $sitename = getSiteName(); $rawsiteurl = getRawSiteUrl(); $indexNum = getIndexNum(); $rssNum = getRssNum(); echo "<p>click here for: <a href=\"twittersettings.php\">twitter settings</a></p>"; echo "<p><b>general site settings:</b></p>"; echo "<form action=\""; echo $_SERVER['PHP_SELF']; echo "\""; echo " method=\"post\">"; echo "user: <input type=\"text\" name=\"user\"><br />"; echo "pass: <input type=\"password\" name=\"pass\"><br />"; echo "name of site: <input type=\"text\" name=\"site\" value=\"" . $sitename . "\"><br />"; echo "base url (without http://): <input type=\"text\" name=\"url\" value=\"" . $rawsiteurl . "\"><br />"; echo "number of entries to display per page: <input type=\"text\" name=\"index\" value=\"" . $indexNum . "\"><br />"; echo "number of entries to display in rss feed: <input type=\"text\" name=\"rss\" value=\"" . $rssNum . "\"><br />"; echo "<input type=\"hidden\" name=\"checksubmit\" value=\"1\">"; echo "<input type=\"submit\" name=\"submit\" value=\"update\">"; echo "</form>"; }