Jelajahi Sumber

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

lolcat 2 tahun lalu
induk
melakukan
fa9dc4d6ef
19 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. TEMPAT SAMPAH
      banner/4get-default.png
  2. TEMPAT SAMPAH
      favicon.ico
  3. TEMPAT SAMPAH
      lib/classic.png
  4. TEMPAT SAMPAH
      lib/favicon404.png
  5. TEMPAT SAMPAH
      lib/img404.png
  6. 1 1
      oracles/calc.php
  7. 2 1
      oracles/time.php
  8. TEMPAT SAMPAH
      static/icon/amazon.png
  9. TEMPAT SAMPAH
      static/icon/facebook.png
  10. TEMPAT SAMPAH
      static/icon/gamespot.png
  11. TEMPAT SAMPAH
      static/icon/github.png
  12. TEMPAT SAMPAH
      static/icon/imdb.png
  13. TEMPAT SAMPAH
      static/icon/instagram.png
  14. TEMPAT SAMPAH
      static/icon/itunes.png
  15. TEMPAT SAMPAH
      static/icon/quora.png
  16. TEMPAT SAMPAH
      static/icon/soundcloud.png
  17. TEMPAT SAMPAH
      static/icon/steam.png
  18. TEMPAT SAMPAH
      static/icon/wikipedia.png
  19. TEMPAT SAMPAH
      static/icon/youtube.png

TEMPAT SAMPAH
banner/4get-default.png


TEMPAT SAMPAH
favicon.ico


TEMPAT SAMPAH
lib/classic.png


TEMPAT SAMPAH
lib/favicon404.png


TEMPAT SAMPAH
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"
 		];
 	}

TEMPAT SAMPAH
static/icon/amazon.png


TEMPAT SAMPAH
static/icon/facebook.png


TEMPAT SAMPAH
static/icon/gamespot.png


TEMPAT SAMPAH
static/icon/github.png


TEMPAT SAMPAH
static/icon/imdb.png


TEMPAT SAMPAH
static/icon/instagram.png


TEMPAT SAMPAH
static/icon/itunes.png


TEMPAT SAMPAH
static/icon/quora.png


TEMPAT SAMPAH
static/icon/soundcloud.png


TEMPAT SAMPAH
static/icon/steam.png


TEMPAT SAMPAH
static/icon/wikipedia.png


TEMPAT SAMPAH
static/icon/youtube.png