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 | |
@$git = simplexml_load_file("https://github.com/septor.atom"); | |
$git_posted = date("F jS, Y @ h:iA", strtotime($git->entry[$i]->published)); | |
$git_ago = ago(strtotime($git->entry[$i]->published)); | |
$git_content = "<a href='".$git->entry[$i]->link['href']."'>".str_replace("septor ", "", $git->entry[$i]->title)."</a>"; | |
if(($git_content)){ | |
echo $git_content." → <b title='".$git_posted."'>".$git_ago."</b>"; |
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 | |
// THIS IS A FIX FOR THE AUTOGALLERY PLUGIN. OVERWRITE YOUR CURRENT arcade.php FILE WITH THE CONTENTS OF THIS GIST!! | |
/********************************************************************************************* | |
* e107 PLUGIN: Auto Gallery - Arcade Integration | |
* VERSION: 2.xx | |
* DESCRIPTION: Integration with arcade high scores. Special thanks to SpooK (Rob Fay) for | |
* his code and assistance. | |
* WRITTEN BY: Mr_Visible (www.cerebralsynergy.com) |
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 | |
// see here for the URL needed: http://www.last.fm/api/show/user.getRecentTracks | |
@$latest = simplexml_load_file("YOURLASTFMRECENTTRACTRSSFEED"); | |
for($a = 0; $a <= 4; $a++){ | |
if($latest->recenttracks->track[$a]->image[2] != ""){ | |
echo "<div class='album'><img src='".$latest->recenttracks->track[$a]->image[2]."' title='".$latest->recenttracks->track[$a]->album."' /></div>\n"; | |
}else{ | |
echo "<div class='wherethefuckisthealbumimage'><img src='what.gif' title='Hold on while I pull this motherfucker up...' /></div>\n"; | |
} |
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 | |
// return the name of the userclass ID submitted, also works with custom userclasses | |
// requires the inclusion of the userclass_class file (or the LAN file): | |
// require_once(e_HANDLER."userclass_class.php"); | |
// include_lan(e_LANGUAGEDIR.e_LANGUAGE."/lan_userclass.php"); | |
function userclassName($id){ | |
if($id == "0"){ | |
$output = UC_LAN_0; |
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
public void LoadQuestionDatabase() | |
{ | |
// first line is used for local testing, comment it out and uncomment the line below it for production use | |
XmlTextReader reader = new XmlTextReader("http://localhost/AnswerIt.xml"); | |
//XmlTextReader reader = new XmlTextReader("https://raw.github.com/septor/answerit/master/AnswerIt.xml"); | |
while (reader.Read()) | |
{ | |
if (reader.NodeType == XmlNodeType.Element && reader.Name == "category") |
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" encoding="utf-8"?> | |
<AnswerIt> | |
<question is="How do you kill a beeeeeeeeeeeeees?"> | |
<answer couldbe="Step on it!" /> | |
<answer couldbe="Spray it with acid!" /> | |
<answer couldbe="Punch it!" /> | |
</question> | |
<question is="How do you kill a beeeeeeeeeeeeees?"> | |
<answer couldbe="Step on it!" /> | |
<answer couldbe="Spray it with acid!" /> |
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
function sendpm($to, $from, $subject, $message){ | |
global $tp; | |
$spm = new db(); | |
return $spm->db_Insert("private_msg", "0, '".intval($to)."', '".intval($from)."', '".intval(time())."', '0', '".$tp->toDB($subject)."', '".$tp->toDB($message)."', '1', '0', '', '', '".intval(strlen($message))."'"); | |
} |
NewerOlder