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 | |
/** | |
* Project: Admin | |
* Copyright: ©2006-2011 Pumpkin Inc. and contributors. | |
* Portions ©2007-2011 Pumpkin Inc. All rights reserved. | |
* @package Users | |
*/ | |
class User_Model extends CI_Model |
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
Index: sapi/cli/config.w32 | |
=================================================================== | |
--- sapi/cli/config.w32 (revision 308839) | |
+++ sapi/cli/config.w32 (working copy) | |
@@ -6,7 +6,8 @@ | |
ARG_ENABLE('cli-win32', 'Build console-less CLI version of PHP', 'no'); | |
if (PHP_CLI == "yes") { | |
- SAPI('cli', 'php_cli.c', 'php.exe'); | |
+ SAPI('cli', 'php_cli.c php_http_parser.c php_cli_server.c', 'php.exe'); |
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 | |
class ShortsTable extends Doctrine_Table | |
{ | |
public static function getInstance() | |
{ | |
return Doctrine_Core::getTable('Shorts'); | |
} |
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 // -------------------------------------------------------------------- | |
/** | |
* Load class | |
* | |
* This function loads the requested class. | |
* | |
* @param string the item that is being loaded | |
* @param mixed any additional parameters | |
* @param string an optional object name |
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
// ========================================================================== | |
// Project: Exapp - mainPage | |
// Copyright: @2011 My Company, Inc. | |
// ========================================================================== | |
/*globals Exapp */ | |
// This page describes the main user interface for your application. | |
Exapp.mainPage = SC.Page.design({ | |
// The main pane is made visible on screen as soon as your app is loaded. |
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
Exapp.mainPage = SC.Page.design({ | |
// The main pane is made visible on screen as soon as your app is loaded. | |
// Add childViews to this pane for views to display immediately on page | |
// load. | |
mainPane: SC.MainPane.design({ | |
childViews: 'toolbarView leftView labelView okButtonView cancelButtonView'.w(), | |
toolbarView: SC.ToolbarView.design({ | |
anchorLocation: SC.ANCHOR_TOP, |
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
// ========================================================================== | |
// Project: Exapp - mainPage | |
// Copyright: @2011 My Company, Inc. | |
// ========================================================================== | |
/*globals Exapp */ | |
// This page describes the main user interface for your application. | |
Exapp.mainPage = SC.Page.design({ | |
// The main pane is made visible on screen as soon as your app is loaded. |
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 script access allowed'); | |
class Short extends CI_Controller { | |
function __construct() | |
{ | |
parent::__construct(); | |
$this->load->helper('form'); | |
$this->load->helper('url'); | |
$this->load->model('Short_Model'); |
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
#!/usr/bin/env php | |
<?php | |
$paths = array(); | |
if (isset($_SERVER['argv'])) | |
{ | |
$paths = $_SERVER['argv']; | |
array_shift($paths); | |
if (!$paths) |
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
server { | |
listen 8080; | |
server_name example.dev www.example.dev; | |
location / { | |
root /Users/Cobby/Sites/Example; | |
if ($host = 'www.example.dev' ) { | |
rewrite ^/(.*)$ http://example.dev:8080/$1 permanent; | |
} |
OlderNewer