ArcEmu: Frozen Blade Enhanced - ArcEmu

Jump to content

Toggle shoutbox Lastest Announcements

dfighter  : (07 December 2014 - 12:06 PM) Arcemu is in hibernation mode, please read http://arcemu.org/fo...showtopic=26903
dfighter  : (01 January 2013 - 05:56 PM) Arcemu wishes you all a happy new year!
Hasbro  : (12 September 2012 - 10:01 AM) Please excuse our outage from the web! Our web host had a major malfunction!
dfighter  : (01 September 2012 - 04:05 PM) Since the spam bots just don't want to stop, I've enabled admin verification when registering.
dfighter  : (23 January 2012 - 09:56 PM) Please note that from now on you will need to confirm your email on the wiki in order to edit it!
Hasbro  : (31 December 2011 - 12:50 PM) Happy New Years all!
Navid  : (26 December 2011 - 04:09 AM) Merry Christmas !!!!!! Happy holidays all :)
WAmadeus  : (24 December 2011 - 03:54 PM) Merry Christmas to all!
dfighter  : (24 December 2011 - 11:05 AM) The Arcemu team wishes y'all a Merry Christmukkah!
Hasbro  : (05 October 2011 - 12:53 PM) Looking for web designers for upcoming web related project. If you're interested in designing user interfaces contact me
dfighter  : (02 September 2011 - 03:47 PM) So who here wants vehicles in Arcemu? :P http://arcemu.org/fo...showtopic=25440
Hasbro  : (14 August 2011 - 03:25 PM) Join us on irc, grab an irc client and connect to irc.freenode.net join channel #arcemu /server irc.freenode.net:6667 /join #arcemu
jackpoz  : (03 August 2011 - 05:33 AM) to all Lua Engine (old one) users: please check http://arcemu.org/fo...showtopic=25274
Hasbro  : (20 May 2011 - 05:27 PM) Looking for people experienced with CMake configuration and setup! Contact me asap
Hasbro  : (15 May 2011 - 05:03 PM) ArcEmu is recruiting C++ programmers, contact Hasbro if interested.
paroxysm  : (03 May 2011 - 06:26 PM) Updated luabridge gossip example to describe the whole gossip creation process rather than just how to create menu. Gossip tutorial
paroxysm  : (23 April 2011 - 11:35 AM) Lua writers can refer to the Luabridge Tutorials section in the Wiki to learn how to write gossip code correctly.
Hasbro  : (20 April 2011 - 05:22 PM) Thank you for your continuous contribution of bug reports, we are working on them.
Hasbro  : (17 April 2011 - 03:20 AM) Please consider donating to support our bills. Donations can be sent using PayPal to donations@arcemu.org - Thank you for your support.
paroxysm  : (10 April 2011 - 12:43 AM) Refer to the Luabridge Tutorials section in the Wiki to learn the new syntax of luabridge.
Resize Shouts Area

  • (8 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Frozen Blade Enhanced

#1 User is offline   Furt 

  • Member
  • Group: Banned
  • Posts: 98
  • Joined: 26-November 08
  • Gender:Male
  • Location:Deep South

Posted 06 October 2009 - 07:46 AM

FrozenBlade Enhanced is a project ive been working on and looking for new developers to help with it.

The template used is FrozenBlade v2 made by Kitten from WoWps.org this is what sparked the idea.

Developers:
Furt
Raven2


01/03/2009 Updates: Trunk

v3.0 Released!!!
Login system
Admin panel
News
Multi-Realm support

Admin panel:
Edit topsites
Edit rewards
Edit realmlist



01/06/2010 Updates: Development

FrozenCMS
Todo:
1. Update donation script to allow adding of points per donation.
2. Optimize code and add cache system. 15%
3. Integrated forums. 10%
4. Template system. 15%
5. Module system.

How to install:
1. Upload trunk to your webserver www folder.
2. Import fbe-db.sql to the website db and import arclogin-vote.sql to your account db.
3. Configure config.php and options.php located in the config folder.
4. Setup realms, topsites, rewards, and news in the admin panel.
5. Enjoy! if everything goes as planned your website should be setup now and ready to use.

The Project forum: http://frozencms.com
The SVN link: http://svn.xp-dev.com/svn/FBE/trunk/
The test server for svn trunk is: http://trunk.frozencms.com
To get the latest zip archive: http://svn.xp-dev.com/svn/FBE/version/ last zip: rev70

--Furt
Projects



Current retail Characters:
Realm Class Name Level
The Forgotten Coast - Druid - Jeeroy - 80
Senjin - Warlock - Maruderenn - 72

#2 User is offline   volarus 

  • Newbie
  • Group: Members
  • Posts: 3
  • Joined: 04-October 09

Posted 06 October 2009 - 02:17 PM

i'll be happy. :rolleyes:
0

#3 User is offline   qwertypie 

  • Member
  • Pip
  • Group: Members
  • Posts: 30
  • Joined: 15-August 09

Posted 08 October 2009 - 01:56 AM

Heres what Ive made so far:

NEW FILE - .PHP (IN /LIB)
<?php
if($_SESSION['loggedin'] == ) {
	echo "<br /><div class=\"logon\">Welcome <strong>". $_SESSION['username'] ."</strong> - <a href='home.php?account=logout'>Logout</a></div>";
	} else {
?>
	<!--start of logon box-->
	<br /><div class="logon">
	<form name="login" method="post" action="home.php?account=login">
	<input type="text" name="login" value="username" size="10">
	<input type="password" name="password" value="password" size="10">
	<input type='submit' value='Login' name='submit'>";
	</div>
	<!--end of logon box-->
<?php 
}
if($_GET['account'] == "login") { //if logging in

	$login = addslashes($_POST['login']);
	$password = addslashes($_POST['password']);
	$conn = (mysql_connect("localhost", "root", "ascent"));
	$database = (mysql_select_db('logon'));
	($conn) or die(mysql_error());
	($database) or die(mysql_error());
	$sql = "SELECT * FROM accounts WHERE login = '$login' AND password = '$password' AND acct is NOT NULL"; 
	$resultat = mysql_query("$sql") or die ("<strong>Error in query:</strong> Hidden <br \><i>" . mysql_error() ."</i>");
	$rader = mysql_num_rows($resultat);

	if($rader == 0) {//checks if username and password are correct
	

echo "<br /><div class=\"logon\">Wrong Username/Password</div>";
	
	} else {
	
		while($rad = mysql_fetch_array($resultat)) {

		$_SESSION['username'] = $login;
		$_SESSION['loggedin'] = TRUE;
		$_SESSION['id'] = $rad['acct'];
		
		if($rad['gm'] == "az") {//if you have an a-z account in the database
		$_SESSION['level'] = "Admin";//sets your session level to admin, currently not used
		}
		
			?>
			<script LANGUAGE="JavaScript">
			<!-- Begin
			window.location="home.php";
			// End -->
			</script>
			<?php

		
	
		}

	}

}

if($_GET['account'] == "logout") {//if logout button pressed

			session_destroy();//destroy session
			?>
			<script LANGUAGE="JavaScript">
			<!-- Begin
			window.location="home.php";
			// End -->
			</script>
			<?php
}
?>




CHANGES - HOME.PHP
<?php 
session_start();
?>
<!-- /**
* Project Name: FrozenBlade V2 Enhanced"
* Date: 25.07.2008 inital version
* Unstuck script by: Blackboy0
* Coded by: Furt
* Template by: Kitten - wowps forums
* Email: *****
* License: GNU General Public License (GPL)
  */ -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php 
require_once('./lib/config.php');
include('./lib/header.php');
?>
<body>
<div class="maintile"><div class="blue"><div class="gryphon-right"><div class="gryphon-left"></div></div></div></div><div class="wowlogo"></div><div></div><div class="container">
<div class="top"></div>
<div class="banner"></div>
<div class="bar">
<?php
include('./lib/logon.php');
?>
</div><div class="inner"><table align="center" width="718" border="0" cellspacing="1" cellpadding="1"><tr>
<?php
include('./lib/leftnavi.php');
include('./lib/pages.class.php');
include('./lib/footer.php');
?>


ADDITION - STYLE.CSS
.logon {
	margin: 0 0 0 400px;
	height: 38px;
	width: 755px;}


Posted Image
Posted Image
not the best of sights

Excuse the messy php, but it works
You can login, it welcomes you with your username, and gives you an option to logout.
Ive not added the session variables from the config to connect and select the database and table, but that is a simple fix.
Next im going to try to alter the account tools to read the session variables, so you dont have to type in your username or password each time, and make it so that when you try to visit the page when you are not logged in, a larger login form displays for you to log on with.
It is cookie free, as it uses the session variables. I have also added a session variable which detects if your wow account is az and sets your session level to admin. Maybe you could add some admin tools which only display for admins? Who knows.
I hope my code helped!
0

#4 User is offline   Furt 

  • Member
  • Group: Banned
  • Posts: 98
  • Joined: 26-November 08
  • Gender:Male
  • Location:Deep South

Posted 08 October 2009 - 02:21 AM

@ qwertypie add my new messenger email "furt1337@live.com" i don't use my old email.
Thats a good start for login system we need to talk on messenger.


Also Ive updated the svn.

current changes:
removed depreciated ereg from account functions so no more errors.
added
<?php error_reporting (E_ALL ^ E_NOTICE); ?>
to remove those pesky index notices.
Projects



Current retail Characters:
Realm Class Name Level
The Forgotten Coast - Druid - Jeeroy - 80
Senjin - Warlock - Maruderenn - 72

#5 User is offline   qwertypie 

  • Member
  • Pip
  • Group: Members
  • Posts: 30
  • Joined: 15-August 09

Posted 08 October 2009 - 02:24 AM

This is currently just a protection script which makes sure you are logged on. I will also be altering it so that you have no need to enter account names and passwords It reads session variables with some quick changes --

UNSTUCKER
$account = $_SESSION['username'];
	$character = $_POST['character'];

$query = "SELECT login, acct FROM accounts WHERE login ='".$account."' AND acct = '".$acct."'";


TELEPORTER
$account = $_SESSION['username'];
	$character = $_POST['character'];
	$location = $_POST['location'];

$query = "SELECT acct FROM accounts WHERE login = '".$account."'";


GETPASS
FIND $_POST['login']
REPLACE WITH $_SESSION['username']


CHANGEPASS
Just plain doesnt work  ^_^ 



NEW PAGE - LOGIN.PHP (IN /PAGES)
<!-- /**
* Project Name: FrozenBlade V2 Enhanced"
* Date: 25.07.2008 inital version
* Login script by: Qwertypie
* Coded by: Furt
* Template by: Kitten - wowps forums
* Email: *****
* License: GNU General Public License (GPL)
  */ -->
<td width="430" valign="top">
<div class="story-top"><div align="center">
<br/><br/><br/><br/><br/><br/><img src="images/text/accountlogin.png">
</div></div><div class="story"><center><div style="width:300px; text-align:left">
      <div align="center">

	  <!-- script start -->
<br><br><br>
    <center>
    <form name="login" method="post" action="home.php?account=login">
	<br />

    <table width="200" border="0">
  <tr>
    <td>Username:</td>
    <td><input type="text" name="login" value="username" size="10"></td>
  </tr>
  <tr>
    <td>Password:</td>
    <td><input type="password" name="password" value="password" size="10"></td>
  </tr>
  <tr>
    <td></td>
  </tr>
</table>


ADDITION TO PAGES.CLASS.PHP
case "Login":
include ("pages/login.php");
break;


ADDITION TO ALL PAGES WHICH ARE PASSWORD PROTECTED
if($_SESSION['loggedin'] == TRUE) {

//content here

} else {
?>
			<script LANGUAGE="JavaScript">
			<!-- Begin
			window.location="home.php?act=Login"; //JavaScript redirect
			// End -->
			</script>
<?php
}


NOT LOGGED IN
Posted Image


LOGGED IN
Posted Image


And on you unstucker your field list is wrong, it says "aura" when it should be "auras"
0

#6 User is offline   qwertypie 

  • Member
  • Pip
  • Group: Members
  • Posts: 30
  • Joined: 15-August 09

Posted 08 October 2009 - 02:33 PM

PS ive added your new address, hope you like the changes, and could I possibly have the user and pass for the subversion? Thanks

Bitbucket - Awesome for repositories - my account name is "qwertypie" there if you make a repo
0

#7 User is offline   World of Fire 

  • Member
  • Pip
  • Group: Members
  • Posts: 19
  • Joined: 09-February 09
  • Gender:Male
  • Location:Cordele, GA

Posted 08 October 2009 - 02:52 PM

Can't wait for the release.
Posted Image
Weed:
Slang. a marijuana cigarette.
Informal. a cigarette or cigar.
0

#8 User is offline   Bob Herman 

  • Interested
  • PipPipPipPip
  • Group: Members
  • Posts: 452
  • Joined: 11-October 08
  • Gender:Male

Posted 08 October 2009 - 04:14 PM

For the unstucker, you could add something like this to check if the user is logged in the game:

<?php
//Start session to load session variables
session_start();

//Look for logged in users by using query. (http://www.arcemu.info/wiki/index.php?title=Characters#online)
$query = "SELECT * FROM 'characters' WHERE acct = $_SESSION['id'] AND online = 1";
$result = mysql_query($query);

//Now see if the account is logged in
if (mysql_num_rows($result) > 0)
     die('Please log off of your account');

0

#9 User is offline   qwertypie 

  • Member
  • Pip
  • Group: Members
  • Posts: 30
  • Joined: 15-August 09

Posted 09 October 2009 - 01:37 AM

Good idea bob, thanks

That is one of the major disadvantages of the script
0

#10 User is offline   Furt 

  • Member
  • Group: Banned
  • Posts: 98
  • Joined: 26-November 08
  • Gender:Male
  • Location:Deep South

Posted 09 October 2009 - 03:01 AM

View PostBob Herman, on 08 October 2009 - 04:14 PM, said:

For the unstucker, you could add something like this to check if the user is logged in the game:

<?php
//Start session to load session variables
session_start();

//Look for logged in users by using query. (http://www.arcemu.info/wiki/index.php?title=Characters#online)
$query = "SELECT * FROM 'characters' WHERE acct = $_SESSION['id'] AND online = 1";
$result = mysql_query($query);

//Now see if the account is logged in
if (mysql_num_rows($result) > 0)
     die('Please log off of your account');



Yes its a really good idea thx for the post.
Projects



Current retail Characters:
Realm Class Name Level
The Forgotten Coast - Druid - Jeeroy - 80
Senjin - Warlock - Maruderenn - 72

#11 User is offline   Bob Herman 

  • Interested
  • PipPipPipPip
  • Group: Members
  • Posts: 452
  • Joined: 11-October 08
  • Gender:Male

Posted 09 October 2009 - 07:28 AM

Glad to help. When will you guys be releasing this?
0

#12 User is offline   qwertypie 

  • Member
  • Pip
  • Group: Members
  • Posts: 30
  • Joined: 15-August 09

Posted 09 October 2009 - 09:50 AM

When its ready :(

nah in all seriousness idk, furt will have an expected release date I think... but I can seem to catch him when hes on msn :lol:
0

#13 User is offline   SoulHunt 

  • Newbie
  • Group: Members
  • Posts: 8
  • Joined: 02-January 09

Posted 09 October 2009 - 05:01 PM

I'm testing this page out too. Same as bob's project lol :(
But I have an little error. Can be seen here http://world.dance-g...ation.org/test/

Line 140 =
                global $db;
				//echo '<textarea width="100%">'.$query.'</textarea>'; //debugging, this will output every query.
					if ($clean == TRUE) {
						$query = clean_data($query); //clean
					}
				
		--> this line:		$res = $db->query($query);
				//return value or not?
					if ($type == 1) { //if we want a value
						$value = $db->fetch_row($res);
						return $value;
					} else {
						return $res;
					}


When i put behind the bold line a } and then I have a screen with no error or no news.
0

#14 User is offline   Bob Herman 

  • Interested
  • PipPipPipPip
  • Group: Members
  • Posts: 452
  • Joined: 11-October 08
  • Gender:Male

Posted 09 October 2009 - 06:02 PM

That's because you're messing up the query. :lol:

In PHP, you can't just throw in BBcode (or whatever that is), you have to add either '' or "" (with a period in between if needed). Your error is most likely caused because you don't have the correct table name (test.phpns_gconfig).

By the way, Furt that looks suspiciously like Swift's dblayer :(
0

#15 User is offline   qwertypie 

  • Member
  • Pip
  • Group: Members
  • Posts: 30
  • Joined: 15-August 09

Posted 10 October 2009 - 03:20 AM

It probably is lol
There is lots of scripts from different people in there
0

#16 User is offline   Furt 

  • Member
  • Group: Banned
  • Posts: 98
  • Joined: 26-November 08
  • Gender:Male
  • Location:Deep South

Posted 10 October 2009 - 05:26 AM

swift was helping with the project for awhile.

read the top post :P
Projects



Current retail Characters:
Realm Class Name Level
The Forgotten Coast - Druid - Jeeroy - 80
Senjin - Warlock - Maruderenn - 72

#17 User is offline   SoulHunt 

  • Newbie
  • Group: Members
  • Posts: 8
  • Joined: 02-January 09

Posted 10 October 2009 - 06:30 AM

bob the bbcode was ment to show which line it should be bold.
But seems like it doesn't show it lol.

That doesn't mean that I have done that in the php file aswell lol
0

#18 User is offline   Swiftsmoke 

  • Advanced Member
  • Group: Retired
  • Posts: 152
  • Joined: 21-October 08
  • Gender:Male
  • Location:England

Posted 10 October 2009 - 07:21 AM

thats actually an older version of the one I use today hehe :P as for your error, your table is missing, redo the queries again :)

Posted Image
Posted Image
0

#19 User is offline   dbrown1986 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 264
  • Joined: 13-December 08
  • Gender:Male
  • Location:In Oblivion...
  • Interests:Computers & College.

Posted 12 October 2009 - 11:53 PM

Glad to see you are back from RL Furt. Might I also suggest the implementation of PHPFusion?

You can get all sorts of resources and tutorials @ http://www.phpfusion-mods.com
Posted Image

Posted Image
Posted Image

Save yourself a post, ask your questions here!
1

#20 User is offline   Furt 

  • Member
  • Group: Banned
  • Posts: 98
  • Joined: 26-November 08
  • Gender:Male
  • Location:Deep South

Posted 16 October 2009 - 02:31 PM

Rev.13
More work done to the development branch of the svn. Login system almost done.



View Postdbrown1986, on 12 October 2009 - 11:53 PM, said:

Glad to see you are back from RL Furt. Might I also suggest the implementation of PHPFusion?

You can get all sorts of resources and tutorials @ http://www.phpfusion-mods.com


Ill check into it when i have time thx for the idea.
Projects



Current retail Characters:
Realm Class Name Level
The Forgotten Coast - Druid - Jeeroy - 80
Senjin - Warlock - Maruderenn - 72

Share this topic:


  • (8 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users