-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite from scratch based on TinyIB
- Loading branch information
root
committed
Mar 30, 2018
1 parent
bd67d18
commit 27540dd
Showing
353 changed files
with
6,226 additions
and
18,957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -219,3 +219,5 @@ pip-log.txt | |
# Smarty | ||
lexer/*.php | ||
lexer/*.out | ||
|
||
config.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* Example Application | ||
* | ||
* @package Example-application | ||
*/ | ||
|
||
require 'libs/Smarty.class.php'; | ||
$con = include('db.php'); | ||
|
||
function getPosts($parent, $board) | ||
{ | ||
global $con; | ||
$sql = 'select * from b_posts where parent = :parent and board = :board'; | ||
$q = $con->prepare($sql); | ||
$q->bindParam(':parent', $parent); | ||
$q->bindParam(':board', $board); | ||
$q->execute(); | ||
return $q->fetchAll(); | ||
} | ||
|
||
$posts = getPosts(0, 'b'); | ||
|
||
$smarty = new Smarty; | ||
|
||
//$smarty->force_compile = true; | ||
$smarty->debugging = false; | ||
$smarty->caching = false; | ||
$smarty->cache_lifetime = 120; | ||
|
||
|
||
$smarty->assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"), | ||
array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234"))); | ||
|
||
$smarty->assign('board', 'b'); | ||
$smarty->assign("posts", $posts); | ||
|
||
$smarty->display('boardhome.tpl'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
return array( | ||
"dbuser" => "user", | ||
"dbpass" => "pass", | ||
"dbhost" => "host", | ||
"dbname" => "name", | ||
"sitename" => "CHAN L" | ||
); | ||
|
||
?> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.post | ||
{ | ||
width: 300px; | ||
height: 100px; | ||
margin: 10px; | ||
overflow:hidden; | ||
} | ||
|
||
.post img | ||
{ | ||
float:left; | ||
min-height: 100%; | ||
max-width: 100%; | ||
} | ||
|
||
.post h1 | ||
{ | ||
float:left; | ||
} | ||
|
||
.imageview img | ||
{ | ||
margin: 0; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.