Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
Quote:
Originally Posted by
azaidi
I like the design.
Just a tip:
PHP Code:
if (! (ACCESS_LEVEL == 'ACCESS_ALL' || ACCESS_LEVEL == 'ACCESS_GUESTS' || ACCESS_LEVEL == 'ACCESS_USERS' || ACCESS_LEVEL == 'ACCESS_ADMIN'))
PHP Code:
if (ACCESS_LEVEL != 'ACCESS_ALL' && ACCESS_LEVEL != 'ACCESS_GUESTS' && ACCESS_LEVEL != 'ACCESS_USERS' && ACCESS_LEVEL != 'ACCESS_ADMIN')
Or you could just use an in_array call there.
Isn't the first one faster as it only has to check atleast once whereas the bottom one it has to check each and every comparison.
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
Quote:
Originally Posted by
The General
Isn't the first one faster as it only has to check atleast once whereas the bottom one it has to check each and every comparison.
First one: Equal = Stop (Because it is true), Unequal = Continue
Second one: Unequal = Continue, Equal = Stop
They are literally the same, except one has to reverse the end-bool which means 1-3 more OPCodes
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
You could use Bootstrap :)
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
Quote:
Originally Posted by
The General
Isn't the first one faster as it only has to check atleast once whereas the bottom one it has to check each and every comparison.
It depends on the values. In the first example, it will check if ACCESS_LEVEL is 'ACCESS_ALL', and if it isn't, it will check the second one. So, if access level is 'ACCESS_ADMIN', it'll check the same amount as the second one. It's slightly better but you barely notice the difference.
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
PHP Code:
$bool = (ACCESS_LEVEL == 'ACCESS_ALL' || ACCESS_LEVEL == 'ACCESS_GUESTS' || ACCESS_LEVEL == 'ACCESS_USERS' || ACCESS_LEVEL == 'ACCESS_ADMIN');
if ($bool == false)
{
//code
}
PHP Code:
if (ACCESS_LEVEL != 'ACCESS_ALL')
{
if (ACCESS_LEVEL != 'ACCESS_GUESTS')
{
if (ACCESS_LEVEL != 'ACCESS_USERS')
{
if (ACCESS_LEVEL != 'ACCESS_ADMIN')
{
//Code
}
}
}
}
IIRC, the PHP compiler/parser can optimise the second one to run like that ^, but the first one first has to calculate the entire value of $bool and then check if it equals false.
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
This guy has not written any of the PHP code himself, or at least, not much of it. I know, because I have made this myself.
You can download the CMS here, it's actually called VibeCMS and I wrote it for vibehotel.nl, but they don't use my CMS anymore:
https://mega.co.nz/#!YttWzJAb!9etqzq...Hi7x4SunjULtxQ
The database is a standard PhoenixEmu DB, but you'll need some extra tables which can be found here:
https://mega.co.nz/#!MtUTjAiZ!kEZxgC...V04RaewVhznvVQ
The housekeeping is not finished yet, but I'll release one if you want me to :)
I did remove the template because they wanted to have it for themselves, all fine, but so: you'll have to make one yourself, but it's not all that difficult, look around in the PHP-code and make something yourself)
~ Xesau
PS: Jer, I don't mind you using my code, but at least give some credits...
PS2: If you don't believe me: look at the file dates in the ZIP. Says enough doesnt it?
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
Yeah I kind of was expecting this. He and a few others (including me) starter a habbo cms. I created the template and soms other guy created the PHP. This guy just stole all of our content and claims it as his while he had done nothing so far. This is just ons big fake system. Nothing is written by him.
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
Quote:
Originally Posted by
Finley7
Yeah I kind of was expecting this. He and a few others (including me) starter a habbo cms. I created the template and soms other guy created the PHP. This guy just stole all of our content and claims it as his while he had done nothing so far. This is just ons big fake system. Nothing is written by him.
If you could provide proof of this (chatlogs, screenshots etc.) to the moderators of this section the thread can be removed. Contact them through PM.
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
This was one of the guys I worked with.
I have already given proof. Look at the file dates in the ZIP.
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
Quote:
Originally Posted by
Xesause
This was one of the guys I worked with.
I have already given proof. Look at the file dates in the ZIP.
Those are editable, but I doubt you'd know how to do that.
It seems like OP didn't upload a full source (only some "snippets") and you did
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
Any updates? Non-habbo themed CMS's aren't really my first pick, but this is looking out fine. As for copyrighting as mentioned above, nothing was yet proven, so please continue with updates. :)
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
Quote:
Originally Posted by
Richaell
Any updates? Non-habbo themed CMS's aren't really my first pick, but this is looking out fine. As for copyrighting as mentioned above, nothing was yet proven, so please continue with updates. :)
'Nothing was yet proven?'
'Nothing was yet proven?'
Watch out, man!
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
Quote:
Originally Posted by
Xesause
'Nothing was yet proven?'
'Nothing was yet proven?'
Watch out, man!
Re-read the comments, pardon me for misunderstanding. Will be looking into your files (as you claim).
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
Been gone for a while, CMS is almost done, got a second style too.
Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]
Read on the first or second page someone recommended a Radio, please - for the love of god - do not make it automatically play on page load. It's so fucking annoying having a radio pelting down your headphones so loud it could pop your ear drums. :(