Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
313 additions
and
528 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
$ktsDbHost=""; //name of MySQL server (this computer=localhost) | ||
$ktsDbUser=""; //user name for connection to database | ||
$ktsDbPasswd=""; //password for user | ||
$ktsDbName=""; //database where are tables of KTS | ||
?> |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
$ktsDbHost=""; //name of MySQL server (this computer=localhost) | ||
$ktsDbUser=""; //user name for connection to database | ||
$ktsDbPasswd=""; //password for user | ||
$ktsDbName=""; //database where are tables of KTS | ||
?> | ||
$ktsDbHost="localhost"; //name of MySQL server (this computer=localhost) | ||
$ktsDbUser="root"; //user name for connection to database | ||
$ktsDbPasswd="xrJASR"; //password for user | ||
$ktsDbName="kts3_clean"; //database where are tables of KTS | ||
?> |
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 |
---|---|---|
@@ -1 +1 @@ | ||
default:YWirgvp3L7o22 | ||
default:YWirgvp3L7o22 |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?php | ||
$categId = $_GET['cid']; | ||
$categId = $_GET['id']; | ||
|
||
$categTitle = $db->QueryValue("title","kts_categories","id='{$categId}'"); | ||
$tproc->set("title", $categTitle); | ||
|
||
$topicList = $db->QueryArray("id,title","kts_topics","categ='{$categId}'"); | ||
$topics = $tproc->loop("Topics", "topicId", "topicTitle"); | ||
$topics = $tproc->loop("topics", "topicId", "topicTitle"); | ||
foreach ($topicList as $d) { | ||
$topics->push($d[0], $d[1]); | ||
} | ||
$topics->commit(); | ||
?> | ||
?> |
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
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 |
---|---|---|
@@ -1,38 +1,42 @@ | ||
<?php | ||
$topicId = $_GET['tid']; | ||
$topicId = $_GET['id']; | ||
|
||
|
||
$query = $db->QueryArray("*","kts_topics","id='{$topicId}'"); | ||
$query = $db->QueryArray("categ,title,value,date","kts_topics","id='{$topicId}'"); | ||
|
||
foreach ($query as $d) { | ||
$tproc->set("title", $d[2]); | ||
$tproc->set("title", $d[1]); | ||
|
||
require("functions/texy/texy.php"); | ||
|
||
$texy = new Texy(); | ||
|
||
$texy->htmlOutputModule->baseIndent = 1; | ||
$texy->encoding = 'utf-8'; | ||
|
||
$html = $texy->process($d[3]); | ||
$html = $texy->process($d[2]); | ||
|
||
$html = str_replace("attachment/", "attachment/{$topicId}/", $html); | ||
|
||
$tproc->set("content", $html); | ||
$tproc->set("date", $d[4]); | ||
if(is_dir("attachment/{$topicId}")) { | ||
$tproc->set("control", 1); | ||
$albumList = scandir("attachment/{$topicId}/"); | ||
$attachments = $tproc->loop("attachments", "title","id"); | ||
for($i=0; $i<count($albumList);$i++) { | ||
if($albumList[$i]!="." && $albumList[$i]!="..") { | ||
$attachments->push($albumList[$i],$topicId); | ||
} | ||
$tproc->set("date", $d[3]); | ||
} | ||
|
||
if(is_dir("attachment/{$topicId}")) { | ||
$tproc->set("control", 1); | ||
$albumList = scandir("attachment/{$topicId}/"); | ||
$attachments = $tproc->loop("attachment", "file", "id"); | ||
|
||
for($i=0; $i<count($albumList);$i++) { | ||
if($albumList[$i]!="." && $albumList[$i]!="..") { | ||
$attachments->push($albumList[$i],$topicId); | ||
} | ||
|
||
$attachments->commit(); | ||
} | ||
|
||
$attachments->commit(); | ||
} | ||
?> | ||
else { | ||
$tproc->set("attachEnabled", 0); | ||
} | ||
?> | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div id="container" class="center"> | ||
<div id="content"> | ||
<img src="images/404.jpg" alt="Error 404 - Page not found" /><br /> | ||
<h2>NejspĂš to tu uĹľ nenĂ, omlouváme se.</h2> | ||
<div id="contentBlock"> | ||
<div class="center"> | ||
<img src="images/404.jpg" alt="Error 404 - Page not found" /><br /> | ||
<h2>Nějak se to pokazilo, omlouváme se :(</h2> | ||
</div> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
O:8:"Template":6:{s:8:"_version";d:1.2199999999999999733546474089962430298328399658203125;s:5:"_file";s:23:"templates/zpnj/404.tmpl";s:7:"_tokens";a:1:{i:0;s:214:" <div class="innerBlock center"> | ||
<div id="content"> | ||
<img src="images/404.jpg" alt="Error 404 - Page not found" /><br /> | ||
<h2>NejspĂš to tu uĹľ nenĂ, omlouváme se.</h2> | ||
O:8:"Template":6:{s:8:"_version";d:1.2199999999999999733546474089962430298328399658203125;s:5:"_file";s:22:"templates/kts/404.tmpl";s:7:"_tokens";a:1:{i:0;s:205:" <div id="contentBlock"> | ||
<div class="center"> | ||
<img src="images/404.jpg" alt="Error 404 - Page not found" /><br /> | ||
<h2>Nějak se to pokazilo, omlouváme se :(</h2> | ||
</div> | ||
</div>";}s:15:"_compile_params";a:5:{i:0;b:1;i:1;i:5;i:2;b:1;i:3;b:0;i:4;a:0:{}}s:6:"_mtime";i:1386468888;s:15:"_include_mtimes";a:0:{}} | ||
</div> | ||
";}s:15:"_compile_params";a:5:{i:0;b:1;i:1;i:5;i:2;b:1;i:3;b:0;i:4;a:0:{}}s:6:"_mtime";i:1397264463;s:15:"_include_mtimes";a:0:{}} |
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 |
---|---|---|
@@ -1,14 +1,16 @@ | ||
<div id="container"> | ||
<div id="content"> | ||
<h1>Výpis článků z kategorie: <TMPL_VAR title></h1> | ||
<ul> | ||
<TMPL_LOOP Topics> | ||
<li> | ||
<a href="p-show?tid=<TMPL_VAR topicId>"> | ||
<TMPL_VAR topicTitle> | ||
</a> | ||
</li> | ||
</TMPL_LOOP> | ||
</ul> | ||
</div> | ||
</div> | ||
<div id="titleBlock"> | ||
<h1>Všechny články z kategorie <TMPL_VAR title></h1> | ||
</div> | ||
|
||
<div id="contentBlock"> | ||
<ul> | ||
<TMPL_LOOP topics> | ||
<li> | ||
<a href="p-show?id=<TMPL_VAR topicId>"> | ||
<TMPL_VAR topicTitle> | ||
</a> | ||
</li> | ||
</TMPL_LOOP> | ||
</ul> | ||
</div> | ||
|
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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
O:8:"Template":6:{s:8:"_version";d:1.2199999999999999733546474089962430298328399658203125;s:5:"_file";s:30:"templates/zpnj/categories.tmpl";s:7:"_tokens";a:26:{i:0;s:88:" <div id="container"> | ||
<div id="content"> | ||
<h1>Výpis článků z kategorie: ";i:1;s:2:"";i:2;s:5:"title";i:3;N;i:4;N;i:5;s:21:"</h1> | ||
<ul> | ||
";i:6;s:2:"";i:7;s:6:"Topics";i:8;N;i:9;N;i:10;s:48:" <li> | ||
<a href="p-show?tid=";i:11;s:2:"";i:12;s:7:"topicId";i:13;N;i:14;N;i:15;s:4:""> | ||
";i:16;s:2:"";i:17;s:10:"topicTitle";i:18;N;i:19;N;i:20;s:35:" </a> | ||
</li> | ||
";i:21;s:2:"";i:22;N;i:23;N;i:24;N;i:25;s:35:" </ul> | ||
</div> | ||
</div>";}s:15:"_compile_params";a:5:{i:0;b:1;i:1;i:5;i:2;b:1;i:3;b:0;i:4;a:0:{}}s:6:"_mtime";i:1390373771;s:15:"_include_mtimes";a:0:{}} | ||
O:8:"Template":6:{s:8:"_version";d:1.2199999999999999733546474089962430298328399658203125;s:5:"_file";s:29:"templates/kts/categories.tmpl";s:7:"_tokens";a:26:{i:0;s:63:" <div id="titleBlock"> | ||
<h1>Všechny články z kategorie ";i:1;s:2:"";i:2;s:5:"title";i:3;N;i:4;N;i:5;s:56:"</h1> | ||
</div> | ||
|
||
<div id="contentBlock"> | ||
<ul> | ||
";i:6;s:2:"";i:7;s:6:"topics";i:8;N;i:9;N;i:10;s:39:" <li> | ||
<a href="p-show?id=";i:11;s:2:"";i:12;s:7:"topicId";i:13;N;i:14;N;i:15;s:4:""> | ||
";i:16;s:2:"";i:17;s:10:"topicTitle";i:18;N;i:19;N;i:20;s:27:" </a> | ||
</li> | ||
";i:21;s:2:"";i:22;N;i:23;N;i:24;N;i:25;s:23:" </ul> | ||
</div> | ||
|
||
";}s:15:"_compile_params";a:5:{i:0;b:1;i:1;i:5;i:2;b:1;i:3;b:0;i:4;a:0:{}}s:6:"_mtime";i:1397263235;s:15:"_include_mtimes";a:0:{}} |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<div id="footer"> | ||
<!--Poslednà aktualizace: <TMPL_VAR update> (před <TMPL_VAR count> dny)<br /> | ||
<br />--> | ||
Webdesign & script: <a href="http://krtkovo.eu/" rel="external">Ondřej Kotas (KRtkovo.eu)</a>, powered by <a href="http://kts.krtkovo.eu/" rel="external">KTS</a> | | ||
DĂlo je publikováno pod licencĂ <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="external">Creative Commons-BY-SA 4.0</a> a <a href="http://www.gnu.org/licenses/gpl-3.0-standalone.html" rel="external">GNU GPL v.3</a> - 2014 | ||
Poslední aktualizace: <TMPL_VAR update> (před <TMPL_VAR count> dny)<br /> | ||
<br /> | ||
Webdesign & script: <a href="http://krtkovo.eu/" rel="external">Ondřej Kotas (KRtkovo.eu)</a>, powered by <a href="https://github.com/KRtkovo-eu/KTS" rel="external">KTS <TMPL_VAR ktsVersion></a><br /> | ||
Dílo je publikováno pod licencí <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="external">Creative Commons-BY-SA 4.0</a> a <a href="http://www.gnu.org/licenses/gpl-3.0-standalone.html" rel="external">GNU GPL v.3</a> - 2014 | ||
</div> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
O:8:"Template":6:{s:8:"_version";d:1.2199999999999999733546474089962430298328399658203125;s:5:"_file";s:26:"templates/zpnj/footer.tmpl";s:7:"_tokens";a:11:{i:0;s:54:" <div id="footer"> | ||
<!--Poslednà aktualizace: ";i:1;s:2:"";i:2;s:6:"update";i:3;N;i:4;N;i:5;s:11:" (před ";i:6;s:2:"";i:7;s:5:"count";i:8;N;i:9;N;i:10;s:481:" dny)<br /> | ||
<br />--> | ||
Webdesign & script: <a href="http://krtkovo.eu/" rel="external">Ondřej Kotas (KRtkovo.eu)</a>, powered by <a href="http://kts.krtkovo.eu/" rel="external">KTS</a> | | ||
DĂlo je publikováno pod licencĂ <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="external">Creative Commons-BY-SA 4.0</a> a <a href="http://www.gnu.org/licenses/gpl-3.0-standalone.html" rel="external">GNU GPL v.3</a> - 2014 | ||
O:8:"Template":6:{s:8:"_version";d:1.2199999999999999733546474089962430298328399658203125;s:5:"_file";s:25:"templates/kts/footer.tmpl";s:7:"_tokens";a:16:{i:0;s:48:" <div id="footer"> | ||
Poslední aktualizace: ";i:1;s:2:"";i:2;s:6:"update";i:3;N;i:4;N;i:5;s:8:" (před ";i:6;s:2:"";i:7;s:5:"count";i:8;N;i:9;N;i:10;s:199:" dny)<br /> | ||
<br /> | ||
Webdesign & script: <a href="http://krtkovo.eu/" rel="external">Ondřej Kotas (KRtkovo.eu)</a>, powered by <a href="https://github.com/KRtkovo-eu/KTS" rel="external">KTS ";i:11;s:2:"";i:12;s:10:"ktsVersion";i:13;N;i:14;N;i:15;s:285:"</a><br /> | ||
Dílo je publikováno pod licencí <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="external">Creative Commons-BY-SA 4.0</a> a <a href="http://www.gnu.org/licenses/gpl-3.0-standalone.html" rel="external">GNU GPL v.3</a> - 2014 | ||
</div> | ||
</body> | ||
</html> | ||
";}s:15:"_compile_params";a:5:{i:0;b:1;i:1;i:5;i:2;b:1;i:3;b:0;i:4;a:0:{}}s:6:"_mtime";i:1392526387;s:15:"_include_mtimes";a:0:{}} | ||
";}s:15:"_compile_params";a:5:{i:0;b:1;i:1;i:5;i:2;b:1;i:3;b:0;i:4;a:0:{}}s:6:"_mtime";i:1397265113;s:15:"_include_mtimes";a:0:{}} |
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
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
Oops, something went wrong.