foreveralone

foreveralone Commit Details


Date:2016-02-27 14:32:11 (8 years 9 months ago)
Author:Natalie Adams
Branch:master
Commit:c3ae3a73b629e1dc889ef2fae84624d25c1c91a0
Parents: 5b61d873fd2c9fc0e871627ecbd9ed3a4c8416bc
Message:Some cleanup and commenting out ParseError in h2o because ParseError is now an exception in PHP

Changes:

File differences

web/foreveralone.php
2525
2626
2727
28
29
30
31
3228
\vendor\DB\DB::query("DELETE FROM users");
\vendor\DB\DB::query("DELETE FROM sessions");
break;
case "adduser":
$user = $argv[2];
\vendor\DB\DB::query("INSERT INTO users VALUES (null, ?)", [$user]);
break;
}
web/system/engine/hf_core.php
11
22
3
4
5
6
7
83
94
105
......
313308
314309
315310
311
312
313
314
316315
317316
318317
<?php
/*include "system/engine/hf_controller.php";
include "system/engine/smtp.php";
include "system/engine/exceptions.php";
include "system/engine/hf_model.php";*/
namespace system\engine;
use vendor\DB\DB;
migration INTEGER,
ran_at DATETIME
)");
if (count($argv) < 2) {
echo "options = show, count, run, clear, reset";
return;
}
switch ($argv[1]) {
case "show":
foreach(DB::fetch("SELECT migration, ran_at FROM migrations") as $migration) {
web/system/vendor/h2o/errors.php
33
44
55
6
6
7
8
9
710
811
912
#Errors
class H2o_Error extends Exception {}
class ParseError extends H2o_Error {}
// PHP now has an exception called ParseError
// but h2o doesn't seem like it uses it so I am commenting it out
// for a future removal
//class ParseError extends H2o_Error {}
class TemplateNotFound extends H2o_Error {}
class TemplateSyntaxError extends H2o_Error {}

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.07550s using 14 queries.