Poll: To merge or not to merge Newbie Help with Programming Help
You do not have permission to vote in this poll.
Yes
100.00%
18 100.00%
I don\'t mind/care
0%
0 0%
Total 18 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Merging newbie help and programming help
#30
Hmmm... it's in beta stage, but seems very functional... and simpler, impossible. The code's ludicrously easy:

VIEW.PHP

Code:
<?

$result = mysql_query("SELECT * FROM blast WHERE keyword = '$blast'");
$blastData = mysql_fetch_array($result);

?>

<html>
<head>
  <title><? echo $blastData["title"] ?></title>
  <link rel=stylesheet href="blast.css" type="text/css">
</head>
<body bgcolor="#ffffff">

<span class="title"><? echo $blastData["title"] ?></span>
<br>
<span class="subtitle"><? echo $blastData["subtitle"] ?></span>
<br>
<span class="blackb"><? echo addBlast(addLinks($blastData["description"])) ?></span>
<br>
<p>
  <span class="black"><? echo addBlast(addLinks($blastData["body"])) ?></span>
</p>
<hr size="1" width="100%">
<span class="black">
<div align="right">
<? echo $blast.' - '.$blastData["date"].' by '.$blastData["author"] ?> (<a href="">home</a>) (<a href="?blast=<? echo $blast?>&what=edit">edit</a>)
<? if ($REMOTE_ADDR==$myIpAddr) { echo '(<a href="admin.php">admin</a>)'; } ?>
</div>
</span>
</body>
</html>

There are an Admin area, but it seems that's only for deleting pages. (if you're using phpMyAdmin, that area's pretty useless, BTW) :roll:
About the restrictions, we can use the same authentication engine that this forum uses, (sessions) or... look, easier than that: since this WIKI uses IP numbers to identify the author, we can restrict the access of the EDIT and NEW modules to be accessed by only the IP numbers contained on an "authorized" table. Far easier, but a bit problematic with dynamic IPs.

What do you say?
img]http://usuarios.vtr.net/~disaster/sigs/annoyizer.php[/img]
Reply


Messages In This Thread
.. - by mofu - 09-01-2002, 02:00 AM
Merging newbie help and programming help - by Neo - 09-02-2002, 03:43 PM
I think - by Agamemnus - 03-08-2003, 09:39 PM
Merging newbie help and programming help - by Hexadecimal Disaster - 03-27-2003, 07:43 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)