Skip to content

Commit f2d8b33

Browse files
committed
rename phtml files to php; fix sqlite3 calls
1 parent 6b7e0c6 commit f2d8b33

8 files changed

+4
-4
lines changed
File renamed without changes.

games.phtml games.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323

2424
function show_results($query) {
2525
$query = preg_replace("/[^a-zA-Z0-9 -]/", "", $query);
26-
$db = sqlite3_open("kombilo/t1.db");
27-
$res = sqlite3_query($db, "select * from games
26+
$db = new SQLite3("kombilo/t1.db");
27+
$res = $db->query("select * from games
2828
where pb like '%$query%' or pw like '%$query%' or ev like '%$query%' or date like '%$query%'
2929
order by date desc
3030
limit 300");
3131
$games = array();
32-
while ($game = sqlite3_fetch_array($res)) $games[] = $game;
32+
while ($game = $res->fetchArray()) $games[] = $game;
3333
if (!count($games)) {
3434
echo "<p>No games found matching &quot;$query&quot;.</p>";
3535
return;
@@ -63,4 +63,4 @@ function show_results($query) {
6363

6464
</div>
6565

66-
<?php include("footer.phtml"); ?>
66+
<?php include("footer.phtml"); ?>

index.phtml index.php

File renamed without changes.

problems.phtml problems.php

File renamed without changes.

source.phtml source.php

File renamed without changes.

test.phtml test.php

File renamed without changes.

tourney.phtml tourney.php

File renamed without changes.

upload.phtml upload.php

File renamed without changes.

0 commit comments

Comments
 (0)