OSdata.com: holistic issues 

OSdata.com

example source code
teamfunctions.php

    Building a game — open source code This is the actual source code from a new web game. See the game at thissideofsanity.com and read how this was built starting at example code.

    This is example code from the SlamZee project and This Side of Sanity, released under Apache License 2.0.

    Copyright 2013, 2014 Milo (for software), Distribution and website handled by Strazbick.com

    Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

    This narrative uses anchor links so that you can follow the building of this software in chronological order. Go to software explanation to start reading. Go to thissideofsanity.com to see the working software.

Google

example source code
teamfunctions.php

    This is example code from the SlamZee project and This Side of Sanity, released under Apache License 2.0.

flash sports
first pass

    Started work on the flash sports pages.

    The goal here is a self-contained flash sports feed.

    This work is split off into its own set of example code for the time being.

    Initial skeleton file.

<?php

   // include function files for this application
   require_once('../php/accounts.php');
   require_once('../php/datavalidation.php');
   require_once('../php/databasefunctions.php');
   require_once('../php/newregistration.php');
   require_once('../php/login.php');

?>

return to explanation of sports code

add bowl game function
second pass

    Add a function to give bowl game information.

/******************************/
/* DisplayBowlInfo                                        */
/* display the college bowl information for this team */
/******************************/
function DisplayBowlInfo($teamnumber)
{

/* this is hard coded for now */
if ($teamnumber == 0)
  {
    return;
  }

echo '<h2 align="center">football bowl game 2013</h2>';

if ($teamnumber == 1) /* Alabama */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;Alabama plays in the Sugar Bowl against Oklahoma on January 2, 2014, at 5:30 p.m. PST on ESPN.</p>';
  }
elseif ($teamnumber == 2) /* Ohio St */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;Ohio State plays in the Orange Bowl against Clemson on January 3, 2014, at 5:30 p.m. PST on ESPN.</p>';
  }
elseif ($teamnumber == 3) /* Oregon */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;Oregon plays in the Valero Alamo Bowl against Texas on December 30, 2013, at 3:45 p.m. PST on ESPN.</p>';
  }
elseif ($teamnumber == 4) /* Georgia */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;Georgia plays in the Gator Bowl against Nebraska on January 1, 2014, at 9 a.m. PST on ESPN 2</p>';
  }
elseif ($teamnumber == 5) /* Florida */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;Florida does not play in a major bowl this year.</p>';
  }
elseif ($teamnumber == 6) /* Texas */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;Texas plays in the Valero Alamo Bowl against Oregon on December 30, 2013, at 3:45 p.m. PST on ESPN.</p>';
  }
elseif ($teamnumber == 7) /* LSU */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;LSU plays in the Outback Bowl against Iowa on January 1, 2014, at 10 a.m. PST on ESPN.</p>';
  }
elseif ($teamnumber == 8) /* Oklahoma */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;Oklahoma plays in the Sugar Bowl against Alabama on January 2, 2014, at 5:30 p.m. PST on ESPN.</p>';
  }
elseif ($teamnumber == 9) /* Texas A&M */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;Texas A&M plays in the Chick-fil-A Bowl against Duke on December 31, 2013, at 5 p.m. PST on ESPN.</p>';
  }
elseif ($teamnumber == 10) /* Washington */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;Washington plays in the Fight Hunger Bowl against Brigham Young on December 27, 2013, at 6:30 p.m. PST on ESPN.</p>';
  }
elseif ($teamnumber == 11) /* Penn St */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;Penn State does not play in a major bowl this year.</p>';
  }
elseif ($teamnumber == 12) /* Florida St */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;Flordia State plays in the last BCS Championship game at the Rose Bowl against Auburn on January 6, 2014, at 5:30 p.m. PST on ESPN.</p>';
  }
elseif ($teamnumber == 13) /* USC */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;USC won the Royal Purple Las Vegas Bowl (Las Vegas, Nevada) 45-20 over Fresno State on December 21, 2013.</p>';
  }
elseif ($teamnumber == 14) /* Michigan */
  {
    echo '<p align="left">&nbsp;&nbsp;&nbsp;&nbsp;Michigan plays in the Buffalo Wild Wings Bowl against Kansas State on December 2827, 2013, at 7:15 p.m. PST on ESPN.</p>';
  }

} /* DisplayBowlInfo */

return to explanation of sports code

return to explanation of source code


OSdata.com is used in more than 300 colleges and universities around the world

Find out how to get similar high web traffic and search engine placement.


OSdata.com is used in more than 300 colleges and universities around the world

Read details here.


    A web site on dozens of operating systems simply can’t be maintained by one person. This is a cooperative effort. If you spot an error in fact, grammar, syntax, or spelling, or a broken link, or have additional information, commentary, or constructive criticism, please e-mail Milo. If you have any extra copies of docs, manuals, or other materials that can assist in accuracy and completeness, please send them to Milo, PO Box 1361, Tustin, CA, USA, 92781.

    Click here for our privacy policy.


previous page next page
previous page next page

home page


Made with Macintosh

    This web site handcrafted on Macintosh computers using Tom Bender’s Tex-Edit Plus and served using FreeBSD .

Viewable With Any Browser


    Names and logos of various OSs are trademarks of their respective owners.

    Copyright © 2013 Milo

    Last Updated: December 26, 2013

    Created: December 21, 2013

previous page next page
previous page next page