Lavalair Installation

Started on the old forum in June 2007 · view the original in the archive · old links redirect here

22 replies · 1,543 views · started 19 years ago · 1 min read

TL;DR · summary of 22 replies
  • futurewap uploaded files and SQL, but Lavalair installation still doesn't work.
  • The next steps involve connecting to the database correctly.
  • FutureWap was advised to use "mysql3.freehostia.com" instead of "mysql2.freehostia.com".
  • A solution for creating an admin account is provided: using install.php.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

4 participants
wizard Senior · 493 posts #21

please could someone find the error in this code its for forums in a different page

<?php
/*
IrisBlaze wap forum
by Ra'ed Shabana
*/

header("Content-type: text/vnd.wap.wml");
header("Cache-Control: no-store, no-cache, must-revalidate");
echo("<?xml version=\"1.0\"?>");
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<?php
include("config.php");
include("core.php");
connectdb();
$action = $_GET["action"];
$sid = $_GET["sid"];
$page = $_GET["page"];
$who = $_GET["who"];
$pmid = $_GET["pmid"];
if(islogged($sid)==false)
{
echo "<card id=\"main\" title=\"SITENAME HERE\">";
echo "<p align=\"center\">";
echo "You are not logged in
";
echo "Or Your session has been expired

";
echo "<a href=\"index.php\">Login</a>";
echo "</p>";
echo "</card>";
echo "</wml>";

exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
{
echo "<card id=\"main\" title=\"SITENAME HERE\">";
echo "<p align=\"center\">";
echo "<img src=\"images/notok.gif\" alt=\"x\"/>
";
echo "You are Banned
";
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'"));
$remain = $banto[0]- time();
$rmsg = gettimemsg($remain);
echo "Time to finish your penalty: $rmsg

";
//echo "<a href=\"index.php\">Login</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
echo " These Are Your Forums $nick";
$fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id");
$iml = "<img src=\"images/1.gif\" alt=\"*\"/>";
while($fcat=mysql_fetch_array($fcats))
{
$catlink = "<a href=\"index.php?action=viewcat&sid=$sid&cid=$fcat[0]\">$iml$fcat[1]</a>";
echo "
$catlink";
$forums = mysql_query("SELECT id, name FROM ibwf_forums WHERE cid='".$fcat[0]."' AND clubid='0' ORDER BY position, id, name");
if(getfview()==0)
{
echo "
";
while($forum=mysql_fetch_array($forums))
{
if(canaccess(getuid_sid($sid),$forum[0]))
{

echo "<a href=\"index.php?action=viewfrm&sid=$sid&fid=$forum[0]\">$forum[1]</a>, ";
}
}
echo "";
}else if(getfview()==20)
{
echo "
Forums: <select name=\"fid\">";
while($forum=mysql_fetch_array($forums))
{
if(canaccess(getuid_sid($sid),$forum[0]))
{
$notp = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$forum[0]."'"));
echo "<option value=\"$forum[0]\">$forum[1]($notp[0])</option>";
}
}
echo "</select>";
echo "<anchor>[GO]";
echo "<go href=\"index.php\" method=\"get\">";
echo "<postfield name=\"action\" value=\"viewfrm\"/>";
echo "<postfield name=\"sid\" value=\"$sid\"/>";
echo "<postfield name=\"fid\" value=\"$(fid)\"/>";
echo "</go>";
echo "</anchor>";
}

}
echo "</small></p>";
echo "<p align=\"center\">";

echo "</p></card>";
}

?>

</wml>

dude you do not have an opening card or page wrapper

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close