Poll: To merge or not to merge Newbie Help with Programming Help
You do not have permission to vote in this poll.
18 100.00%
I don\'t mind/care
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
Hmmm... it's in beta stage, but seems very functional... and simpler, impossible. The code's ludicrously easy:



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


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

<span class="title"><? echo $blastData["title"] ?></span>
<span class="subtitle"><? echo $blastData["subtitle"] ?></span>
<span class="blackb"><? echo addBlast(addLinks($blastData["description"])) ?></span>
  <span class="black"><? echo addBlast(addLinks($blastData["body"])) ?></span>
<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>)'; } ?>

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?

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)