
Ruko
Members-
Posts
57 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
Ruko's Achievements

Member (2/5)
0
Reputation
-
Changed the code a bit more... I apologize if im bumping Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCond %{HTTP_HOST} !^www\.terra-boards\.com$ [NC] RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.terra-boards\.com$ [NC] RewriteRule .* /phpbbforums/$1 [L] This time, everytime i go on some other page in test.terra-boards.com, it redirects to the index and the url bar stays the same.
-
ok i got part of it fixed. Now all i need to do is... how do i remove the phpbbforums in test.multiforum.com/phpbbforums? RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\.terra-boards\.com$ RewriteCond %{HTTP_HOST} ^(www\.)?([a-z0-9][a-z0-9\-]*[a-z0-9])\.terra-boards\.com$ [NC] RewriteRule ^$ /phpbbforums/ [L]
-
moving all the files in the root would mean that i have to replace my website's index.php, so i cant move all the files in the root.
-
I recently recoded a multiforum software, it works fine but the problem is, the redirection. I have a wildcard domain setup, and if people visit "test.multiforum.com" then it works. but if they visit something like for example "test.multiforum.com/viewforum.php" then it leads to 404 error. Here's what i have been getting on the error log. 2011-11-15 17:19:38.914 [iNFO] [**.***.**.***:50039-0#APVH_*.terra-boards.com] File not found [/home/n****x/public_html/terra-b****s.com/viewforum.php] I don't know why im getting that error. Here's my .htaccess file, I don't know what i did wrong. RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\.terra-boards\.com$ RewriteCond %{HTTP_HOST} ^(www\.)?([a-z0-9][a-z0-9\-]*[a-z0-9])\.terra-boards\.com$ [NC] RewriteCond %{REQUEST_URI} !^phpbbforums/ RewriteRule ^$ phpbbforums/ [L] Can someone help me on this?
-
Is there any way to turn XML data into PHP variables. I tried this code $xml = simplexml_load_file("../inc/xml/style.xml); $result = $xml->xpath("styleinfo"); // lets make sql querys to upload the XML style info to the database $name = $result[0]->name; $desc = $result[0]->description; $copyright = $result[0]->copyright; $version = $result[0]->version; $designer = $result[0]->designer; mysql_query("INSERT INTO styles (stylename, styledescription, stylecopyright, version, designer) VALUES ('$name', '$desc', '$copyright', '$version', '$designer')") or die(mysql_error()); and the XML data outputs as blank. Help pls
-
Edited some parts of the code, and got this error: Query was empty if ($_SERVER["HTTP_HOST"]) { $selectdb = mysql_select_db("ruko_forumaccounts", $con); $serverurl = $_SERVER["HTTP_HOST"]; $forumurl = "SELECT * FROM forumaccounts WHERE forumurl = '. $serverurl .'"; $result=mysql_query($sql, $con) or die(mysql_error()); while ($row=mysql_fetch_array($result)) { if ($_SERVER["HTTP_HOST"] == '"$row["forumurl"];"') { $dbms = 'mysqli'; $dbhost = 'localhost'; $dbport = ''; $dbname = 'ruko_phpbbmulti'; $dbuser = 'ruko_phpbbm'; $dbpasswd = 'luigi1997'; $table_prefix = '$row["forumprefix"];'; $acm_type = 'file'; $load_extensions = ''; } } }
-
rewrote the code, looks like im getting there. Also I get this phpBB error now: Warning: require(./includes/acm/acm_.php) [function.require]: failed to open stream: No such file or directory in /home/ruko/public_html/phpBB3MULT6242/common.php on line 189 if ($_SERVER["HTTP_HOST"] == '*.terraboards.co.cc') { $selectdb = mysql_select_db("ruko_forumaccounts", $con); $serverurl = $_SERVER["HTTP_HOST"]; $forumurl = "SELECT * FROM 'forumaccounts' WHERE forumurl LIKE '. $serverurl .'"; $result=mysql_query($sql, $con) or die(mysql_error()); while ($row=mysql_fetch_array($result)) { if ($_SERVER["HTTP_HOST"] == '"$row["forumurl"];"') { $dbms = 'mysqli'; $dbhost = 'localhost'; $dbport = ''; $dbname = 'ruko_phpbbmulti'; $dbuser = 'ruko_phpbbm'; $dbpasswd = '*****'; $table_prefix = '$row["forumprefix"];'; $acm_type = 'file'; $load_extensions = ''; } } }
-
Im trying to make a multiforum software for phpBB and im stuck. Ive been trying to figure this out for HOURS and still, I end up with f**king syntax errors. Kind of hard to explain. If they visit forumname.terraboards.com then it will load their forum tables. But instead I end up with errors. The codes I tried does not work. Now I don't know where to start.s I feel like im trying to create a impossible triangle. Is there any solution? My Code: $serverurl = $_SERVER["HTTP_HOST"]; $forumurl = "SELECT * FROM 'forumaccounts' WHERE forumurl LIKE '. $serverurl .'"; $result=mysql_query($sql, $con) or die(mysql_error()); while ($row=mysql_fetch_array($result)) { if ($_SERVER["HTTP_HOST"] == '$row["forumurl"];') { $dbms = 'mysqli'; $dbhost = 'localhost'; $dbport = ''; $dbname = '***_phpbbmulti'; $dbuser = '***_phpbbm'; $dbpasswd = '****'; $table_prefix = '$row["forumprefix"];'; $acm_type = 'file'; $load_extensions = ''; } else { die ("Invalid forum"); } }
-
bump
-
Parse error: syntax error, unexpected ']' in /home/minivid/public_html/myart/index.php on line 23
-
Bump, anyone want to correct my code?
-
$admin = mysql_query("SELECT level FROM users WHERE admin = '¥'") or die(mysql_error()); $array = mysql_fetch_assoc($admin); if ($array['admin'] != '$nonadmins']) { } Hows that code? Similar to deviantart usernames, for example, im the main admin, my username should be: ¥Ruko
-
I didn't write any code, I can't seem to write it, how do I do this?
-
If an mysql value from a table is in a certain text (for example, in the users table, at the permissions column , it says "admin"), then run a block of code
-
Hello, is there something like this? If mysql record is admin, then a block of code How do I do something like that