This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Add React in One Minute</title> | |
</head> | |
<body> | |
<h2>Add React in One Minute</h2> | |
<p>This page demonstrates using React with no build tooling.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Functions | |
* | |
* This file contains numerous helper functions. | |
* @author Alex Garcia | |
* @version 0.1 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define("BASEPATH","pathnamed"); | |
include('login.class.php')?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Untitled Document</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct access allowed'); | |
$config['username'] = ''; | |
$config['error_message'] = 'Sorry we could not log you in.'; | |
$config['logout_message'] = 'You have been logged out.'; | |
$config['default_page'] = 'index.php'; | |
$config['password'] = '' //should be hashed with sha1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define("BASEPATH","pathname"); | |
//To use this include it in the top of all pages you need to protect: | |
//<?php include_once('login_helper.php');?> | |
function authenticate($url = 'login.php') | |
{ | |
session_start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct access allowed'); | |
/** | |
* Handles a simple login scenario. | |
* | |
* @author Alex Garcia | |
* @copyright 2011 | |
*/ | |
class Login{ | |
//An array of values used in the system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
var today = new Date(); | |
today = new Date(today.getFullYear(), today.getMonth(), today.getDate()); // Zero time components | |
var tomorrow = today.getDay() + 1; | |
var next_two_days = today.getDay() + 2; | |
var next_three_days = today.getDay() + 3; | |
var curr_time = getTime(); | |
var curr_day = today.getDate(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') OR die('No direct access allowed.'); | |
/** | |
* Project Controller | |
* | |
* Handles the data traffic for our projects. | |
* | |
* @package Project_Controller | |
* @category Controllers | |
* @author Alex Garcia | |
* @copyright Copyright (c) 2010, KGBTexas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Drop Down | |
* | |
* Enables easier creation of drop downs within our code. | |
*/ | |
class Dropdown{ | |
public $dd_open; | |
public $dd_options; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') OR die('No direct access allowed.'); | |
/** | |
* Table | |
* | |
* Handles the creation of tables programmatically | |
*/ | |
class Table{ | |
public $table_open; | |
public $table_rows; |
NewerOlder