New Script i am working on

Started on the old forum in March 2015 · view the original in the archive · old links redirect here

19 replies · 631 views · started 11 years ago · 1 min read

10 participants
djdevil89 Senior · 287 posts #1

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.

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
arnage Lead · 811 posts #2

Looks cool. 🙂

Wap community globally is on bypass, sadly...

I remember a few years back when bunch of people were writing, designing, building or patching something...

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
cgp Developer · 107 posts #3

that looks exactly like the phoenixbytes code TBH from 10 years ago.

no longer in the game

djdevil89 Senior · 287 posts #4

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

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
Ghost Senior · 366 posts #5

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.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
djdevil89 Senior · 287 posts #6

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 🙂

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
Ghost Senior · 366 posts #7

ah yeah it will. i just ment by looks. it being pretty minimal would suit mobiles alot.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
djdevil89 Senior · 287 posts #8

Ghost wrote: ah yeah it will. i just ment by looks. it being pretty minimal would suit mobiles alot.

thats the intention, while the new html5 css3 etc is nice most people dont think about people with limited net on their phones so i keep it light

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
Ghost Senior · 366 posts #9

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.'";');
}

then added to config file:

synchronize_php_and_mysql_timezones('Europe/London');

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

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
djdevil89 Senior · 287 posts #10

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.'";');
}

then added to config file:

synchronize_php_and_mysql_timezones('Europe/London');

which finally solved all my problems all the times was properly inserted into db, and displayed back also.

nice one will keep that in mind 🙂

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
Ghost Senior · 366 posts #11

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.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
something else Fellow · 2,296 posts #12

arnage wrote: Looks cool. 🙂

Wap community globally is on bypass, sadly...

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

djdevil89 Senior · 287 posts #13

hmm, there are a lot of potentional scripts here, with a bit of effort you can make them just as modern as they used to be back then

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
kevk3v Senior · 332 posts #14

Why don't all of us work on an open source community script on GitHub. 😕

Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

GumSlone Administrator Principal · 1,690 posts #15

would be interesting but it might not work, i have tried to do so with CT members in the past and it didn't work.

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

kevk3v Senior · 332 posts #16

I think it's worth a shot though... I think we should make a responsive CMS, not a wap script.

Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

GumSlone Administrator Principal · 1,690 posts #17

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.

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

kevk3v Senior · 332 posts #18

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?

Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

djdevil89 Senior · 287 posts #19

Now that is what i like to see 😉 coders becomming active again 🙂

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close