This file contains hidden or 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 | |
/* fill in your database name */ | |
$database_name = "dbname"; | |
/* connect to MySQL */ | |
if (!$link = mysql_connect("dbservername", "dbuser", "dbuserpass")) { | |
die("Could not connect: " . mysql_error()); | |
} | |
This file contains hidden or 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
#!/bin/bash | |
# File: exp_permissions.sh | |
# Description: Sets permssions on a ExpressionEngine install | |
# | |
# Copyright 2009 George Ornbo (Shape Shed) | |
# | |
# 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 | |
# |
This file contains hidden or 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 | |
/* | |
EE2 hidden configuration variables | |
Last updated: Jun 20 2010 | |
Obtain this list by putting print_r($this->EE->config->config); on a PHP-enabled template. | |
See: http://eeinsider.com/tips/view/config-overrides-for-ee-1-and-2/ | |
*/ |
This file contains hidden or 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('EXT')){ | |
exit('Invalid file request'); | |
} | |
require 'config.php'; | |
?> |
This file contains hidden or 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
/* | |
* Author: Marco Kuiper (http://www.marcofolio.net/) | |
* Sylvain Papet (http://www.com-ocean.com/) | |
*/ | |
(function($) { | |
$.bgimgSlideshow = {version: '1.0.0'}; | |
$.fn.bgimgSlideshow = function(options) { | |
options = jQuery.extend({ |
This file contains hidden or 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 | |
// get the time for use in the clocks | |
$now = time(); | |
date_default_timezone_set("Europe/London"); echo date("D H:i T", $now); | |
date_default_timezone_set("Asia/Kuala_Lumpur"); echo date("D H:i T", $now); | |
?> |
This file contains hidden or 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
########################################################################################## | |
#!/bin/bash | |
# File: set_exp_permissions.sh | |
# Description: Performs an upgrade on a ExpressionEngine install for EE 2.x | |
########################################################################################## | |
# First we need to get the current working directory | |
DIR=$(pwd) | |
# If we can't find the file/folder required, this is the message we're displaying |
This file contains hidden or 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 | |
$plugin_info = array( | |
'pi_name' => 'Undo Gypsy', | |
'pi_version' => '1.0', | |
'pi_author' => 'Brian Litzinger | BoldMinded.com & Nerdery.com', | |
'pi_description' => 'Undoes Gypsy', | |
'pi_usage' => 'BACK EVERYTHING UP FIRST!', | |
); | |
/* | |
This script is provided as is. There is no warranty or guarantee this will |
This file contains hidden or 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 | |
/*/////////////////////////////////////////////////////////////////////// | |
Part of the code from the book | |
Building Findable Websites: Web Standards, SEO, and Beyond | |
by Aarron Walter ([email protected]) | |
http://buildingfindablewebsites.com | |
Distrbuted under Creative Commons license | |
http://creativecommons.org/licenses/by-sa/3.0/us/ | |
///////////////////////////////////////////////////////////////////////*/ |
This file contains hidden or 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
<form id="signup" action="<?=$_SERVER['PHP_SELF']; ?>" method="get"> | |
<p id="response"> | |
<? require_once($_SERVER['DOCUMENT_ROOT'] . '/mc/store-address.php'); if($_GET['submit']){ echo storeAddress(); } ?> | |
</p> | |
<input type="text" class="text" placeholder="[email protected]" name="email" id="email" /> | |
<input type="submit" class="button" value="Subscribe"> | |
</form> |
OlderNewer