{"id":15461132,"url":"https://github.com/machawk1/oducs418","last_synced_at":"2025-09-13T00:35:28.170Z","repository":{"id":24384299,"uuid":"27784089","full_name":"machawk1/ODUCS418","owner":"machawk1","description":null,"archived":false,"fork":false,"pushed_at":"2015-04-20T13:37:31.000Z","size":1998,"stargazers_count":1,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"spring2015","last_synced_at":"2025-05-12T13:12:22.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/machawk1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-09T19:51:49.000Z","updated_at":"2015-09-05T18:11:21.000Z","dependencies_parsed_at":"2022-08-22T23:40:06.193Z","dependency_job_id":null,"html_url":"https://github.com/machawk1/ODUCS418","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machawk1%2FODUCS418","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machawk1%2FODUCS418/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machawk1%2FODUCS418/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machawk1%2FODUCS418/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/machawk1","download_url":"https://codeload.github.com/machawk1/ODUCS418/tar.gz/refs/heads/spring2015","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253745195,"owners_count":21957319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T23:40:51.059Z","updated_at":"2025-05-12T13:12:41.770Z","avatar_url":"https://github.com/machawk1.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"ODUCS418\n========\nThis GitHub repository will be the basis for submitting assignments for CS418 - Web Programming at Old Dominion University for the Spring 2015 semester, taught by Mat Kelly (\u003ca href=\"https://github.com/machawk1\"\u003e@machawk1\u003c/a\u003e).\n\n## Student Project Repositories \nBelow are links to students' project repositories for the class based on their submission in \u003ca href=\"http://www.cs.odu.edu/~mkelly/semester/2015_spring/cs418/assignments/assignment1.html\"\u003eassignment 1\u003c/a\u003e. \n\n* [achverch](https://github.com/andrewchverch/WebProjectCS) ([Milestone 1](https://github.com/andrewchverch/WebProjectCS/6da11c433b2d41c2a95bf6dc9946e050259c13c7))([Milestone 2](https://github.com/andrewchverch/WebProjectCS/commit/253efb06fe0cd3e1151fb12370ff2b04ab4d03ac))\n* [acoffman](https://github.com/atc07d/WebProgramming) ([Milestone 1](https://github.com/atc07d/WebProgramming/6cdaf87f2203940c909c14de5dc82822f5709fdb))([Milestone 2](https://github.com/atc07d/WebProgramming/commit/a3c4afe1520a0f628367f96e01dcb66a04c13895))\n* [cbliss](https://github.com/thecbliss/cblissCS418) ([Milestone 1](https://github.com/thecbliss/cblissCS418/dc7e4ebe6540ac52c7f67c8a8feb0154b412965c))\n* [cteague](https://github.com/chateague/Chas-ODUCS418) ([Milestone 1](https://github.com/chateague/Chas-ODUCS418/21f77c93f2645eae3b6123a53ae65635b006e679))([Milestone 2](https://github.com/chateague/Chas-ODUCS418/commit/37f1be41fdffdac26bc6addf12632b847d0bd05d))\n* [dwebste](https://github.com/DWebsterJr/Spring15) ([Milestone 1](https://github.com/DWebsterJr/Spring15/fcc2c3e175fd499180298478018b578c9ed5167a))([Milestone 2](https://github.com/DWebsterJr/Spring15/commit/58f3ff3d97de3456756c977d63673f916b6f048a))\n* [jbennett](https://github.com/jbennett122/JBENNETT_CS418) ([Milestone 1](https://github.com/jbennett122/JBENNETT_CS418/d40272425532641df0e1178e5e3417aa048b70ee))([Milestone 2](https://github.com/jbennett122/JBENNETT_CS418/commit/07e47471ca0d65e5a43e0e0105a8639b251c9842))\n* [kshena](https://github.com/kshena/Ridi) ([Milestone 1](https://github.com/kshena/Ridi/4d46b914d39229e31c348cd6ffc0191b4d12ce33))\n* [mvanacor](https://github.com/mvanacor/cs418Project) ([Milestone 1](https://github.com/mvanacor/cs418Project/e5055b9b44b928039b2d7ff1e5f57c3fcfc34392))([Milestone 2](https://github.com/mvanacor/cs418Project/commit/775e196889120ba5ff9e863cbf4105c9a2e749c5)) \n* [mletchwo](https://github.com/mletchworth/CS-418) ([Milestone 1](https://github.com/mletchworth/CS-418/c33e6368e3fd1a091b409abe5638dce9d90fcea9))([Milestone 2](https://github.com/mletchworth/CS-418/commit/a2a2b55ec12b024b7529cdc02ec32e55db97b18c))\n* [ngoodall](http://github.com/CatLover91/WebDevCourse) ([Milestone 1](http://github.com/CatLover91/WebDevCourse/6dd15914fb64557ca7a3e10dccf557987e4318a6))([Milestone 2](https://github.com/CatLover91/WebDevCourse/commit/b4770e4225ef75ee0185caf17971bd540e8fddc0))\n* [rodonnel](https://github.com/rcodonnell/cs418Project) ([Milestone 1](https://github.com/rcodonnell/cs418Project/84857bd784771ae92143699165e9f1b78d5a53bb))([Milestone 2](https://github.com/rcodonnell/cs418Project/commit/33e00126a7ee0055a1905e02d83e3e9d766e0b62))\n* [wdougher](https://github.com/wdoug004/CS418Project) ([Milestone 1]())\n\n12/13 students (listed above) submitted pull requests.\n\n## Some useful demo day information\n\n### To be run for each student:\n\n```sh\n$ docker run -it -p 80:80 -e MYSQL_PASS=\"5pR1nG2OlS\" -v `pwd`:/app mkelly/lamptest\n```\n\n### In the instance that the database creation SQL is not provided\n \n```sql\nCREATE DATABASE IF NOT EXISTS `lecture4` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;\nUSE `lecture4`;\n```\n\n\n### Enable PHP error reporting\n\n```php\nini_set('display_errors',1);\nini_set('display_startup_errors',1);\nerror_reporting(-1);\n```\n\n### Create, Maintain, and Destroy Sessions in PHP\nA demo to serve as an example for how to deal with sessions in PHP to maintain a persistent user login. The scripts have been deployed at http://www.cs.odu.edu/~mkelly/semester/2015_spring/cs418/sessionsExample/ but should be portable enough to be run anywhere that can execute PHP scripts (e.g., your XAMPP installation). The [credentials previously provided](https://github.com/machawk1/ODUCS418/blob/spring2015/credentials.txt) can be used to log into the system.\n* [index.php](https://github.com/machawk1/ODUCS418/blob/spring2015/sessionsExample/index.php) - checks if a user is logged in. If so, lists questions. If not, redirects to login.php.\n* [login.php](https://github.com/machawk1/ODUCS418/blob/spring2015/sessionsExample/login.php) - provides an HTML form for interfacing with the credentials verification script (header.php).\n* [header.php](https://github.com/machawk1/ODUCS418/blob/spring2015/sessionsExample/header.php) - included in the login.php script (whose form targets itself) to check if post data has been supplied and check it against a pseudo-database in db.php\n* [db.php](https://github.com/machawk1/ODUCS418/blob/spring2015/sessionsExample/db.php) - a pseudo-database to replicate what would be done with MySQL queries but simply returns arrays.\n* [question.php](https://github.com/machawk1/ODUCS418/blob/spring2015/sessionsExample/question.php) - takes a HTTP GET parameter of id, which causes a \"query\" to the data in db.php and returns the appropriate content.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachawk1%2Foducs418","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmachawk1%2Foducs418","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachawk1%2Foducs418/lists"}