New Script i am working on

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    New Script i am working on

    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.

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


    #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

    Comment


      #3
      that looks exactly like the phoenixbytes code TBH from 10 years ago.
      HTML, WML, CSS, mySQL, PHP, ASP, CGI, JavaScript coding discussions and help.
      no longer in the game

      Comment


        #4
        Originally posted by cgp View Post
        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 :P 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
        Last edited by djdevil89; 04.03.15, 16:46. Reason: stupid typos

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

        Comment


          #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 '

          sigpic
          alt='coding-talk.com!!' />';
          echo 'Sharing Is Caring!';
          } else {
          echo '

          alt='the username GHOST has been comprimised!' />';
          echo 'OMG SOMEBODY HELP ME!!';
          }
          ?>

          Comment


            #6
            Originally posted by Ghost View Post
            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

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

            Comment


              #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 '

              sigpic
              alt='coding-talk.com!!' />';
              echo 'Sharing Is Caring!';
              } else {
              echo '

              alt='the username GHOST has been comprimised!' />';
              echo 'OMG SOMEBODY HELP ME!!';
              }
              ?>

              Comment


                #8
                Originally posted by Ghost View Post
                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

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

                Comment


                  #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

                  PHP Code:
                  /** 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 ? -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:
                  PHP Code:
                  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
                  Last edited by Ghost; 04.03.15, 21:38.
                  <?php
                  include ('Ghost');
                  if ($Post == true) {
                  echo '

                  sigpic
                  alt='coding-talk.com!!' />';
                  echo 'Sharing Is Caring!';
                  } else {
                  echo '

                  alt='the username GHOST has been comprimised!' />';
                  echo 'OMG SOMEBODY HELP ME!!';
                  }
                  ?>

                  Comment


                    #10
                    Originally posted by Ghost View Post
                    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

                    PHP Code:
                    /** 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 ? -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:
                    PHP Code:
                    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

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

                    Comment


                      #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 '

                      sigpic
                      alt='coding-talk.com!!' />';
                      echo 'Sharing Is Caring!';
                      } else {
                      echo '

                      alt='the username GHOST has been comprimised!' />';
                      echo 'OMG SOMEBODY HELP ME!!';
                      }
                      ?>

                      Comment


                        #12
                        Originally posted by arnage View Post
                        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

                        Comment


                          #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

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

                          Comment


                            #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

                            Comment


                            • GumSlone
                              GumSlone commented
                              Editing a comment
                              well, i would start looking into benchmarks, how often the frameworks are updated and how secure and popular they are: http://systemsarchitect.net/performa...hp-frameworks/

                            • kevk3v
                              kevk3v commented
                              Editing a comment
                              Actually now I think we should go with 100% our own code, that way we can understand/explain everything nicely... so who's in?

                            • GumSlone
                              GumSlone commented
                              Editing a comment
                              own code is cool but there is no way around frameworks, if you are developing scripts for long time you have already collected a bunch of classes and functions which you use in your new scripts (its a kind of your own framework), i'm always ready to learn new things, so using new framework may bring some new experiences for my feature projects, i.e. it could speed up the development time etc.

                            #15
                            Framework is the way to go if multiple people are working on 1 project keeps everything clean and as gum said it is alot quicker
                            Creator of
                            Epix.Mobi

                            Keep an Eye on us Big things coming soon!!!!
                            Need something for your site hit me up here

                            http://coding-talk.com/forum/main-fo...r-your-wapsite

                            Comment

                            Working...
                            X