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
if ($.browser.msie && $.browser.version.substr(0,1)<7) { | |
} |
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
<label for="state">State</label> | |
<select name="state" id="state" class="validate[required]"> | |
<? $state = array('','QLD', 'NSW', 'VIC', 'ACT', 'SA', 'NT', 'TAS', 'WA');?> | |
<? foreach($state as $s): ?> | |
<option value="<?=$s?>"<? if ($form['state']==$s): ?> selected="selected"<? endif; ?>><?=$s?></option> | |
<? endforeach; ?> | |
</select> |
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
<label for="state">State</label> | |
<select name="state" id="state" class="validate[required]"> | |
<? $state = array('','QLD' => 'Queensland', 'NSW' => 'New South Wales', 'VIC' => 'Victoria', 'ACT' => 'Australian Capital Territory', 'SA' => 'South Australia', 'NT' => 'Northern Territory', 'TAS' => 'Tasmania', 'WA' => 'Western Australia');?> | |
<? foreach($state as $k => $s): ?> | |
<option value="<?=$k?>"<? if ($form['state']==$s): ?> selected="selected"<? endif; ?>><?=$s?></option> | |
<? endforeach; ?> | |
</select> |
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
<label for="state">State</label> | |
<select name="state" id="state" class="validate[required]"> | |
<? $state = array('','Queensland','New South Wales','Victoria','Australian Capital Territory','South Australia','Northern Territory','Tasmania','Western Australia');?> | |
<? foreach($state as $s): ?> | |
<option value="<?=$s?>"<? if ($form['state']==$s): ?> selected="selected"<? endif; ?>><?=$s?></option> | |
<? endforeach; ?> | |
</select> |
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
$if2(%albumartist%,%artist%)\$if(%album%,%album%\,)%track% - $if(%albumartist,$if(%albumartist%!=%artist%,%artist%- ,),)%title% |
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
<? | |
if (in_array($url_parts[0], array('admin','application','login')) && $_SERVER['SERVER_PORT'] != '443') { | |
header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); | |
exit(); | |
} else if (!in_array($url_parts[0], array('admin','application','login')) && $_SERVER['SERVER_PORT'] == '443') { | |
header('Location: http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); | |
exit(); | |
} |
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
<? | |
// See http://cyber.law.harvard.edu/rss/rss.html | |
date('D, d M Y H:i:s O', strtotime($item['pubDate'])) | |
?> |
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
<?='<?'?>xml version="1.0"<?='?>'?> | |
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<channel> | |
<title><?=$config['site']['name']?></title> | |
<link><?=$config['site']['url']?></link> | |
<description><?=$config['site']['name']?> Feed</description> | |
<language>en-us</language> | |
<pubDate><?=$items[0]['pubDate']?></pubDate> | |
<lastBuildDate><?=$items[0]['pubDate']?></lastBuildDate> |
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
.asc:after{ | |
content: ' \25B2'; | |
} | |
.desc:after{ | |
content: ' \25BC'; | |
} |
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
SELECT field, count(field) AS n | |
FROM table | |
GROUP BY field | |
HAVING n > 1 | |
ORDER BY n; |