Well, hi guys, the last few times i checked up on here, to my sadness i had to see that WAP Communitys almost died, anyways, i have decided to start a new WAP Script, i will attach a few screenshots of what i have so far when it is done i will upload it here for everyone.
cgp wrote:
that looks exactly like the phoenixbytes code TBH from 10 years ago.
The difference here is mainly that i am using mysqli which is not 10 years old 😛 i try to keep the code as modern as possible
Few features i have in:
IP Ban (useless with proxys vpn etc but people want it)
You can set the minimum age from the owner tools
Script Update Check (can be turned on or off)
Gallery with male and female category
i kept it modular everything is handled by the index.php just drop a new file in the sites folder and add a link to main.php or wherever you desire
this looks good man. i take it is based for mobiles over all? im going to be making mine a responsive. atm its best viewed in pc/laptop. but will a little css modding i can make it look great on all 3 by hiding some elements from other browsers.
Ghost wrote:
this looks good man. i take it is based for mobiles over all? im going to be making mine a responsive. atm its best viewed in pc/laptop. but will a little css modding i can make it look great on all 3 by hiding some elements from other browsers.
Right now im making this for mobiles yep, but it works on PC's too 🙂
i always try to think about the network issue. but all i hear off people now is they want color. they want all the things css/html gives. so i stopped all the headaches i was getting from people and just gave in to them lol. also went from flatfile to mysqli which has been a fun experience lol having to mess about with 2 times/timezones mysql server and php server was a headache all of its own trying to get php and mysql to get it exact was a pain. so i ended up just making php and mysql server synch up timezones
/** function that will synchronize php and mysql timezones to user defined
timezone if not set will revert to a default of Europe/London */
function synchronize_php_and_mysql_timezones($config){
$config->timezone = isset($config->timezone) ? $config->timezone : 'Europe/London';
date_default_timezone_set($config->timezone);
$now = new DateTime();
$minutes = $now->getOffset() / 60;
$segment = ($minutes < 0 ? -1 : 1);
$minutes = abs($minutes);
$hours = floor($minutes / 60);
$minutes -= $hours * 60;
$offset = sprintf('%+d:%02d', $hours*$segment, $minutes);
db::mysqli()->query('SET time_zone="'.$offset.'";');
}
which finally solved all my problems all the times was properly inserted into db, and displayed back also.
if you was to use this though. would have to change $config->timezone to $config though since this is calling my db file also.
and change db::mysqli()->query('SET time_zone="'.$offset.'";'); to mysqli normal call or your own
Ghost wrote:
i always try to think about the network issue. but all i hear off people now is they want color. they want all the things css/html gives. so i stopped all the headaches i was getting from people and just gave in to them lol. also went from flatfile to mysqli which has been a fun experience lol having to mess about with 2 times/timezones mysql server and php server was a headache all of its own trying to get php and mysql to get it exact was a pain. so i ended up just making php and mysql server synch up timezones
/** function that will synchronize php and mysql timezones to user defined
timezone if not set will revert to a default of Europe/London */
function synchronize_php_and_mysql_timezones($config){
$config->timezone = isset($config->timezone) ? $config->timezone : 'Europe/London';
date_default_timezone_set($config->timezone);
$now = new DateTime();
$minutes = $now->getOffset() / 60;
$segment = ($minutes < 0 ? -1 : 1);
$minutes = abs($minutes);
$hours = floor($minutes / 60);
$minutes -= $hours * 60;
$offset = sprintf('%+d:%02d', $hours*$segment, $minutes);
db::mysqli()->query('SET time_zone="'.$offset.'";');
}
with that solution your also able to move your script to another server and still be able to produce same times etc. so no more messing about getting times to look correct again once moved etc. as sometimes this is a possibility when moving servers due to servers being in diff timezone.
I remember a few years back when bunch of people were writing, designing, building or patching something...
RIP WAP 1999-2013 - 14 years of giving us internet on the go, unfortunately these days its known as "Worthless Application Protocol" due to phones supporting full html and most of javascript
you can start gathering some information about the file structure, database structure, frameworks and libraries for it,
but wouldn't like to lead the project since i don't have that much time, i could back it up, be a codev and code some snippets for it.
Ok I will start on it later today or tomorrow, I think it would be nice to use a PHP framework like Laravel there're lots of useful stuff in that and code looks really nice with Blade, or do you recommend something else?