I can't seem to get it to work. I did everything right.
First the error I get:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AC Web Ultimate Repack\Server\htdocs\avs\index.php:13) in C:\AC Web Ultimate Repack\Server\htdocs\avs\index.php on line 42
Login:
Reward_points field does not exist in the "Logon Database" its automatic added to the database, This page will go back in 5 seconds
And I did all of this:
Readme
Here you will find instructions on how to set up your copy of AVS.
Installation
1. Put the folder containing AVS into your website.
2. In your web site's MySQL database, execute these queries:
CREATE TABLE `realms` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(32) default NULL, `sqlhost` varchar(32) default NULL, `sqluser` varchar(32) default NULL, `sqlpass` varchar(32) default NULL, `chardb` varchar(32) default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; CREATE TABLE `votemodules` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(32) default NULL, `image` varchar(12 default NULL, `url` varchar(12 default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; CREATE TABLE `voterewards` ( `id` int(10) unsigned NOT NULL auto_increment, `realm` tinyint(3) unsigned default NULL, `name` varchar(32) default NULL, `description` text, `itemid` int(10) unsigned default NULL, `points` tinyint(3) unsigned default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; CREATE TABLE `votes` ( `ip` varchar(16) default NULL, `account` varchar(16) default NULL, `module` tinyint(3) unsigned default NULL, `time` int(11) default NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
3. If you also have AAPDRDS installed, it uses the same "realms" table.
4. Add a column named "reward_points" of type "int" to the accounts table in your logon database.
5. In the realms table, enter the name and MySQL information for each realm of your server.
6. In the votemodules table, enter name, vote, and image urls for each topsite your server is on.
7. In the voterewards table, enter the information of each reward you want to offer. The realm is the id of the realm in the realms table. The itemid is the id of the item to be sent via mail. The points are the amount of points required to purchase the item.
8. Leave the votes table as-is.
9. Proceed to edit the configuration information located at the top of the index.php file.
Vote Pop-up
The file "popup.php" contains a customizeable vote pop-up that will appear every page visit if the user has not voted in 12 hours. You can edit any HTML between the PHP tags. Place a "<?php include("path/to/popup.php"); ?>" somewhere on every page you wish the popup to appear.
Can someone look it over and make sure it's right and in database please.
The vote page link:
Login:
And the .PhP file
=======================================
<?php
if(!isset($_COOKIE['vote_time']))
{
?>
<!-- Start Vote Pop-up -->
<div id="votepopup" style="padding:2px; border:#000000 solid 1px; height:150px; width:200px; top:100px; left:100px; position:absolute; background:#FFFFFF;">
This is your customizeable vote reminder box,
letting you know that you are able to vote again.<br>
<a href="http://www.xtremetop100.com/in.php?site=1132285116">Vote!</a>
</div>
<!-- End Vote Pop-up-->
<?php
}
?>
<?php
//Configuration
//Logon Database information.
define("LOGON_HOST","127.0.0.1");//Logon database host
define("LOGON_USER","root");//Logon database username
define("LOGON_PASS","ascent");//Logon database password
define("LOGON_DB","mysql");//Logon database
define("ENCRYPT_PASSWORDS",false); // !!! - Not yet supported
//Local webserver's MySQL information.
define("MYSQL_HOST","127.0.0.1");//avs database host
define("MYSQL_USER","root");//avs database username
define("MYSQL_PASS","ascent");//avs database password
define("MYSQL_DB","mysql");//avs database
//In game mail settings
define("MAIL_SUBJECT","Thanks For Voting!");
define("MAIL_BODY","Thank you for voting for our server. Here is your reward!");
// Misc
define("RPPV",1); // Reward points per vote. Must be a whole number.
session_start();
// force login to view.
if(!$_SESSION['vcp']['authenticated'] && $_GET['act'] != "vote")
{
include("pages/login.php");
new Login();
die;
}
switch($_GET['act'])
{
default:
include("pages/overview.php");
new Overview();
break;
case "rewards":
include("pages/rewards.php");
new Rewards();
break;
case "spend":
include("pages/spend.php");
new Spend();
break;
case "vote":
include("pages/vote.php");
new Vote();
break;
}
?>
<script type="text/javascript">
alert("hi");
<a href="http://wowblitz2.ath.cx">WoW Blitz</a>
Core:Arcemu
Core Revision: $Id: arcemu-world.conf rev.2208
Database: mysql 5.1
Database Revision:
Repack you used (if any): Arcemu 3.1.X
Thank you for all the help!! +Rep for help !!