Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules
Author Message
dakat
New Member
New Member



Joined: Jun 01, 2015
Posts: 19

PostPosted: Sat Jun 06, 2015 9:38 am Reply with quote

I get a error when trying to install database can anybody transfer the rminstall php to a mysql file so I can import the database
thanks


php Code:


case "install":
$pagetitle = "$pagename: Install";
include("header.php");
title("$pagetitle");
OpenTable();
$total=0;
echo "<b>Operation Results:</b><hr>\n";
$result = $db->sql_query("CREATE TABLE ". $prefix ."_rm_referer_url (
uid int(11) NOT NULL auto_increment,
url varchar(255) NOT NULL default '',
url_count int(11) NOT NULL default '0',
url_date int(11) NOT NULL default '',
PRIMARY KEY (uid))");
if (!$result) { echo "CREATE TABLE ". $prefix ."_rm_referer_url <b><font color=red>failed</font></b><br>\n";$rm_url=1;$total++;}
else {echo "CREATE TABLE ". $prefix ."_rm_referer_url <b><font color=blue>succeeded</font></b><br>\n";$rm_url=0;$total++;}
$result = $db->sql_query("CREATE TABLE ". $prefix ."_rm_referer_ip (
ip_id int(11) NOT NULL auto_increment,
username varchar(255) NOT NULL default '',
ip_address varchar(255) NOT NULL default '',
hostname varchar(255) NOT NULL default '',
ip_count int(11) NOT NULL default '0',
url_id int(11) NOT NULL default '0',
ip_date int(11) NOT NULL default '',
first_date int(11) NOT NULL default '',
PRIMARY KEY (ip_id))");
if (!$result) { echo "CREATE TABLE ". $prefix ."_rm_referer_ip <b><font color=red>failed</font></b><br>\n";$rm_ip=1;$total++;}
else { echo "CREATE TABLE ". $prefix ."_rm_referer_ip <b><font color=blue>succeeded</font></b><br>\n";$rm_ip=0;$total++;}
$result = $db->sql_query("CREATE TABLE ". $prefix ."_rm_referer_config (
id int(11) NOT NULL default '1',
rmstatus varchar(255) NOT NULL default '',
rmmax int(11) NOT NULL default '0',
rmipmax int(11) NOT NULL default '',
rmdateformat varchar(255) NOT NULL default '',
PRIMARY KEY (id))");
if (!$result) { echo "CREATE TABLE ". $prefix ."_rm_referer_config <b><font color=red>failed</font></b><br>\n";$rm_config=1;$total++;}
else {echo "CREATE TABLE ". $prefix ."_rm_referer_config <b><font color=blue>succeeded</font></b><br>\n";$rm_config=0;$total++;}
$result = $db->sql_query("INSERT INTO ". $prefix ."_rm_referer_config VALUES ('1','on', '1000', '2000', 'd/m/Y H:iA')");
if (!$result) { echo "INSERT INTO ". $prefix ."_rm_referer_config <b><font color=red>failed</font></b><br>\n";$rm_configupdate=1;$total++;}
else {echo "INSERT INTO ". $prefix ."_rm_referer_config <b><font color=blue>succeeded</font></b><br>\n";$rm_configupdate=0;$total++;}
echo "<hr><b>Operation Complete!</b><br>\n";
$failed=$rm_ip + $rm_url + $rm_config + $rm_configupdate;
echo "<b>$failed out of $total Operations failed</b><hr>\n";
$file=basename(__FILE__);
if (!$rm_url && !$rm_url) {echo "<hr><b>Now please delete this <font color=red>$file</font> for your security!</b><hr>\n";}
echo "<b><a href='". $_SERVER['PHP_SELF'] ."'>Go Back</a> <-> <a href='admin.php'>Go to Admin control panel</a></b><br>";
CloseTable();
include("footer.php");
break;
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Sun Jun 07, 2015 3:31 am Reply with quote

The code looks weird. Please post a download-link to the module. Without a info to PHP or mysql errors i don't have a clue where the issue is based.

_________________
Github: RavenNuke

Last edited by neralex on Tue Jul 14, 2015 2:27 am; edited 1 time in total 
View user's profile Send private message
dakat







PostPosted: Sun Jun 07, 2015 5:16 pm Reply with quote

I hop this works its refferal module

thanks for the help



referers-manager_v1.0.tar.gz
 Description:
refferal plugin

Download
 Filename:  referers-manager_v1.0.tar.gz
 Filesize:  9.21 KB
 Downloaded:  336 Time(s)

 
neralex







PostPosted: Tue Jun 09, 2015 3:56 am Reply with quote

Your uploaded archive is broken, try to upload it here: [ Only registered users can see links on this board! Get registered or login! ]
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©