- Joined
- Sep 9, 2008
- Messages
- 582
- Reaction score
- 12
Dark&Red Flyff CMS v0.1betaHi guys. . im developing a new site for Flyff! i am 50% done. .
I am ready with the CSS, HTML & JS
but im not good at PHP
so i need help!
anyone who can add anything to this^^, . . .
I cant get the login and user panel ready^^
i need help w/ making a php code for login and the usercontrol panel^^ thnx. .
when i login it goes back to recent page^^, . .
and id like the WYSIWYG Editor code for editing the news.
anyone can help?heheheh^^ thnx ahead
if your interested please reply and leave the codes or links to tutorials for that^^, .
or contact me through yahoo messenger at [email protected]
or join my hamachi network blazegamers no password
Here are some screenshots!
//USER PANEL Login Still not working!
//USER PANEL Login Still not working!
I am limited to 10 images only so more images are linked!
To view the content, you need to sign in or register
->Loading Style//Admin Panel Login Still not working

My Brothers Release = Flyff Server Manager
it makes running server more easier!
anyways the style is from MU Webs. .^^ so Credits to MU WEB!
&& AyanKent && iPwn™ && All RAgeZone FLyff section Coders!!!!!!
anyone want to continue this?
i will give all files to a rz member w/ 300+ post^__^
its really getting hard to finish
Help ^_^
This is my header PHP^_^ not really made by me. . but this is wht i used.
This is my header PHP^_^ not really made by me. . but this is wht i used.
PHP:
<?php
/* Unset all Cookies on Logout */
if(isset($_POST['logout']))
{
setcookie('uid', '', time() - 86400);
setcookie('dispchar', '', time() - 86400);
setcookie('slotleft', '', time() - 86400);
$page = $_GET['page'];if($page!='login') { header('Location: ?page='.$page); }
else { header('Location: ?page=home'); }
}include'config.php';include'src/gzip_header.php';
/* Unset cookies if main cookie expires */
if(!isset($_COOKIE['uid'])) { setcookie('dispchar', '', time() - 86400); setcookie('slotleft', '', time() - 86400); }
/* Set main cookie after register */
if($_GET['loginreg']) { setcookie('uid', $_GET['uid'], time() + 900); header('Location: ?page=login'); }
/* Set current character slot *
/if($_GET['slot']) { setcookie('uid', $_COOKIE['uid'], time() + 900); setcookie('dispchar', $_GET['slot']); header('Location: ?page=login'); }
/* Reset Position Process */
if($_GET['act']=='resetpos')
{
$user = $_COOKIE['uid'];
$charslot = $_COOKIE['dispchar'] - 1;
$resetpos = mysql_query("update characters set posx='6960', posy='100', posz='3317', posworldid='1' where accountname='$user' and charslot='$charslot'"); header('Location: ?page=login');}
/* Buffer System Process */
if($_GET['page']=='ok'){
$user = $_COOKIE['uid'];
$charslot = $_COOKIE['dispchar'] - 1;
$chk = 148;
while ($chk > 19){
if(!$_GET[$chk]){ $chk = $chk - 1; }
else {
$skillid = $_GET[$chk];
$chkdata = mysql_query("select skillid from buffs where charid=(select id from characters where accountname='$user' and charslot='$charslot') and skillid='$skillid'");
$chkdata = mysql_fetch_row($chkdata); if(($chk>113&&$chk<117)||($chk>48&&$chk<51)||($chk==53)||($chk==20)||($chk==26)) $sklvl = 20;
if($chk>145&&$chk<149) $sklvl = 10;
$ability_type = mysql_query("select dwDestParam1 from data_skills where dwName='$chk' and dwSkillLvl='$sklvl'"); $ability = mysql_query("select dwAdjParamVal1 from data_skills where dwName='$chk' and dwSkillLvl='$sklvl'"); $ability_type = mysql_fetch_array($ability_type);
$ability = mysql_fetch_array($ability);
$ability_type = $ability_type["dwDestParam1"];
$ability = $ability["dwAdjParamVal1"];
if(!$chkdata){ $addbuff = mysql_query("insert into buffs (charid, skillid, skilllvl, abilityType1, ability1, remainingTime) values ((select id from characters where accountname='$user' and charslot='$charslot'), '$skillid', '$sklvl', '$ability_type', '$ability', '$buff_time')");
} else {
$addbuff = mysql_query("update buffs set remainingTime='$buff_time' where skillid='$skillid' and charid=(select id from characters where accountname='$user' and charslot='$charslot)"); }
$chk = $chk - 1;
}
}
header('Location: ?page=login');
}
/* Login Process */
if(isset($_POST['login'])){
$pass = md5('kikugalanet'.$_POST['password']);
$user = addslashes($_POST['username']); $query = mysql_query("select * from accounts where username='$user'");
$query = mysql_fetch_array($query);
if(!$query){ $errmes = 'Unregistered Account.'; }
else {
$query = $query["password"];
if($query!=$pass){ $errmes = 'Wrong Password'; }
else
{
$query = "select * from characters where accountname='$user'";
$charCount = mysql_num_rows(mysql_query($query));
if($charCount > 1) {
$chkCharSlot = mysql_fetch_array(mysql_query("select * from characters where accountname='$user' and charslot='0'")); if(!$chkCharSlot) { setcookie('dispchar', 2); }
else { setcookie('dispchar', 1); setcookie('slotleft', 1); } } else {
$chkCharSlot = mysql_fetch_array(mysql_query("select * from characters where accountname='$user'"));
$chkCharSlot = $chkCharSlot["charslot"] + 1;
setcookie('dispchar', $chkCharSlot);
}
setcookie('uid', $user, time() + 900);
$passvar = 'Location: ?page=login';
header($passvar); } }}
?>
now this is my login script tell me whats wrong!^_^ please!
PHP:
<table width="176" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="2"></td>
<td width="174"><table width="174" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="30" style="background: url(template/default/images/red_menu_top.png); background-repeat: no-repeat;"><div align="center" class="menu_title">
<div align="right">Member Area</div>
</div></td>
</tr>
<tr>
<td valign="top" style="background-image: url(template/default/images/red_menu_middle.png);"><table width="167" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td height="2"><img src="template/default/images/red_menu_space.png" width="167" height="2" alt=""></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" style="background-image: url(template/default/images/red_menu_middle.png);" class="space"><form name="account_l" method="post" action="">
<table width="174" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="18"></td>
<td width="156" class="text">Username</td>
</tr>
<tr>
<td> </td>
<td><input name="username" type="text" class="field" size="20" title="Enter your User Name here." value="<?php echo $_POST['username']; ?>"></td>
</tr>
<tr>
<td></td>
<td class="text">Password</td>
</tr>
<tr>
<td> </td>
<td><input name="password" type="password" class="field" size="20" ><input type="hidden" name="username_login"></td>
</tr>
<tr>
<td> </td>
<td class="space"><div id="pass_content" align="left"><input name="login" type="button" class="button" value="Login!" onClick="encrypt_data('account_l','pass_content','Please Wait...','140');"></div>
</td>
</tr>
<tr>
<td> </td>
<td class="space"><span class="menu_link"><a href="#" onClick="sub_page('Lostpass.php');">Lost Password </a></span></td>
</tr>
</table></form></td>
</tr>
<tr>
<td><img src="template/default/images/red_menu_bottom.png" width="174" height="17" alt=""></td>
</tr>
</table>
<table width="174" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
Please Help!
Last edited:

