• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Bitefight Project

Newbie Spellweaver
Joined
Aug 21, 2008
Messages
63
Reaction score
8
Re: [Release] Bitefight Project

for the item equip bug replace the lines

PHP:
foreach($user_items as $item)
{
    if($user_itemRow->id == $item->item_id)
    {
        if($item->equipped)
        {
            $this->app->flash('tab', 3);
            $this->app->response->redirect('/user/overview');
        }
        else
        {
            $item->equipped = 1;
            $item->save();
            $this->app->flash('tab', 3);
            $this->app->response->redirect('/user/overview');
        }
    }

    $itemRow = Item::where('id', $item->item_id)->find_one();
    if($itemRow->model == $user_itemRow->model)
    {
        $item->equipped = 0;
        $item->save();
    }

    $user_item->equipped = 1;
    $user_item->save();
}
 
Newbie Spellweaver
Joined
Aug 21, 2008
Messages
63
Reaction score
8
Re: [Release] Bitefight Project

And the correct session->init. You guys are probably trying to save your sessions to a folder my host has lol

PHP:
    public function init()
	{
		session_cache_limiter(false);
		session_start();

		if(isset($_SESSION['__token']))
		{
			$this->__token = $_SESSION['__token'];
		}
		else
		{
			$this->__token = self::random();
		}
	}
 
Experienced Elementalist
Joined
Jun 8, 2011
Messages
233
Reaction score
10
Re: [Release] Bitefight Project

And the correct session->init. You guys are probably trying to save your sessions to a folder my host has lol

PHP:
    public function init()
	{
		session_cache_limiter(false);
		session_start();

		if(isset($_SESSION['__token']))
		{
			$this->__token = $_SESSION['__token'];
		}
		else
		{
			$this->__token = self::random();
		}
	}

That's a better solution than I found xD so with this will never save session files anymore.
 
Last edited:
Junior Spellweaver
Joined
Oct 23, 2016
Messages
106
Reaction score
4
Re: [Release] Bitefight Project

can you reupload this version ?
thanks

Okey, i am starting to develop bitefight because i kinda already know how it works. I put my index and news page at my current free host and you can follow there for news or read this thread ill update both.

If it says a page is completed in news and you found a bug please let me know.

Demo: BiteFight 210.County

For script download:
Database:
https://gist.github.com/Osein/c079986ee25b0943fc29
Files:
https://mega.co.nz/#!qZ023Jqa!OhLSmNweUyhXfrbTxieVYUhef-a46jEbXPD12xQC90U



edit:::
I dont have this files anymore but I found an old script in my bitbucket account, if anyone is interested
https://bitbucket.org/Osein/bf.osein.net/overview
 
Back
Top