@@ 56-63 (lines=8) @@ | ||
53 | } |
|
54 | ||
55 | $css = array(); |
|
56 | if (($applicableCSS = $sql->query(" |
|
57 | SELECT * |
|
58 | FROM `css` |
|
59 | WHERE |
|
60 | `canvashack` = '" . implode("' OR `canvashack` = '", array_keys($canvashacks)) . "' |
|
61 | ")) == false) { |
|
62 | exit; |
|
63 | } |
|
64 | while ($entry = $applicableCSS->fetch_assoc()) { |
|
65 | $css[$entry['canvashack']] = shell_exec("php \"{$entry['path']}\" \"{$location}\" 2>&1"); |
|
66 | } |
@@ 50-57 (lines=8) @@ | ||
47 | } |
|
48 | ||
49 | $dom = array(); |
|
50 | if (($applicableDOM = $sql->query(" |
|
51 | SELECT * |
|
52 | FROM `dom` |
|
53 | WHERE |
|
54 | `canvashack` = '" . implode("' OR `canvashack` = '", array_keys($canvashacks)) . "' |
|
55 | ")) == false) { |
|
56 | exit; |
|
57 | } |
|
58 | while ($entry = $applicableDOM->fetch_assoc()) { |
|
59 | $dom[$entry['canvashack']] = "$('{$entry['selector']}').{$entry['event']}(" . |
|
60 | (empty($entry['action']) ? '' : "this." . canonicalNamespaceId($entry['canvashack']) . |
|
@@ 69-76 (lines=8) @@ | ||
66 | ' . implode(PHP_EOL . "\t", $dom) . ' |
|
67 | }'); |
|
68 | ||
69 | if (($response = $sql->query(" |
|
70 | SELECT * |
|
71 | FROM `javascript` |
|
72 | WHERE |
|
73 | `canvashack` = '" . implode("' OR `canvashack` = '", array_keys($canvashacks)) . "' |
|
74 | ")) == false) { |
|
75 | exit; |
|
76 | } |
|
77 | while ($entry = $response->fetch_assoc()) { |
|
78 | $javascript[$entry['canvashack']] = canvasHackNamespace( |
|
79 | $entry['canvashack'], |