Explorar o código

Merge branch 'master' of https://git.lolcat.ca/lolcat/4get

lolcat %!s(int64=2) %!d(string=hai) anos
pai
achega
fa9dc4d6ef

BIN=BIN
banner/4get-default.png


BIN=BIN
favicon.ico


BIN=BIN
lib/classic.png


BIN=BIN
lib/favicon404.png


BIN=BIN
lib/img404.png


+ 1 - 1
oracles/calc.php

@@ -118,7 +118,7 @@ class calculator extends oracle {
 		if (count($tokens) > 0 && $tokens[0][0] == "o" || $tokens[count($tokens)-1][0] == "o") {
 			throw new Exception("Error Processing Request", 1);
 		}
-		if (in_array(["g", "("], $tokens)) {
+		while (in_array(["g", "("], $tokens)) {
 			$first_open = array_search(["g", "("], $tokens);
 			$enclosedality = 1;
 			for ($i = $first_open+1; $i < count($tokens); $i++) {

+ 2 - 1
oracles/time.php

@@ -8,7 +8,7 @@ class time extends oracle {
 		$prompts = [
 			"what", "time", "is", "it",
 			"right", "now", "the", "current",
-			"get"
+			"get", "date"
 		];
 		$q = str_replace(",", "", $q);
 		$q = str_replace("?", "", $q);
@@ -37,6 +37,7 @@ class time extends oracle {
 		date_default_timezone_set($timezone);
 		return [
 			"The time in ".$timezone => date("H:i:s"),
+			" " => date("l, F jS"),
 			"" => "include the string \"tz:XXX\" to use timezone XXX"
 		];
 	}

BIN=BIN
static/icon/amazon.png


BIN=BIN
static/icon/facebook.png


BIN=BIN
static/icon/gamespot.png


BIN=BIN
static/icon/github.png


BIN=BIN
static/icon/imdb.png


BIN=BIN
static/icon/instagram.png


BIN=BIN
static/icon/itunes.png


BIN=BIN
static/icon/quora.png


BIN=BIN
static/icon/soundcloud.png


BIN=BIN
static/icon/steam.png


BIN=BIN
static/icon/wikipedia.png


BIN=BIN
static/icon/youtube.png