2012-08-19, 05:57 PM
2012-08-19, 06:55 PM
can you upload the files ?
because it is hard to detect the problem while there is spaces between them
the error says the problem is in line 2 and line 2 is empty so please upload the files
and thank you
because it is hard to detect the problem while there is spaces between them
the error says the problem is in line 2 and line 2 is empty so please upload the files
and thank you
2012-08-19, 07:16 PM
tutorial.php
konkurs.php
<?php
define("IN_MYBB", 1);
$templatelist = "tutorial_main";
require_once "./global.php";
require_once "./inc/init.php";
$pageTitle = "Acadamy of Role Play - Tutoriale!";
add_breadcrumb("Acadamy of Role Play - Tutoriale!"); // this is a forum navigation: Forum / Links
// you can change word links to any other name
$out = "<html><head>";
$start = '<a class="pagination_page" href="tutorial.php">Start</a> ';
if($mybb->input['site'] != 1)
{
$page1 = '<a class="pagination_page" href="tutorial.php?site=1">1</a> ';
}
else
{
$page1 = ' <span class="pagination_current">1</span>';
}
if($mybb->input['site'] != 2)
{
$page2 = '<a class="pagination_page" href="tutorial.php?site=2">2</a> ';
}
else
{
$page2 = ' <span class="pagination_current">2</span>';
}
if($mybb->input['site'] != 3)
{
$page3 = '<a class="pagination_page" href="tutorial.php?site=3">3</a> ';
}
else
{
$page3 = ' <span class="pagination_current">3</span>';
}
if($mybb->input['site'] == 1)
{
eval("\$out .= \"".$templates->get("tutorial_1")."\";");
}
elseif($mybb->input['site'] == 2)
{
eval("\$out .= \"".$templates->get("tutorial_2")."\";");
}
elseif($mybb->input['site'] == 3)
{
eval("\$out .= \"".$templates->get("tutorial_3")."\";");
}
else{
eval("\$out .= \"".$templates->get("tutorial_main")."\";");
}
$out .= "</body></html>";
output_page($out);
?>
konkurs.php
<?php
define("IN_MYBB", 1);
$templatelist = "konkurs_main";
require_once "./global.php";
require_once "./inc/init.php";
$pageTitle = "Dział konkursów - Strona główna";
$out = "<html><head>";
if($mybb->input['konkurs'] >= '1')
{
$q = $db->query("SELECT * FROM mybb_konkurs_pytania WHERE id = {$mybb->input['konkurs']}");
$a = $db->fetch_array($q);
if($db->num_rows($q) != 0)
{
eval("\$out .= \"".$templates->get("konkurs_pytania")."\";");
}
else
{
error_no_permission();
}
}
elseif($mybb->input['konkurs'] == "odpowiedzi")
{
if($mybb->user['uid'] == 1)
{
$q = $db->query("SELECT * FROM mybb_konkurs_odpowiedzi");
$odp = '';
if($db->num_rows($q) != 0)
{
while($b = $db->fetch_array($q))
{
$q = $db->query("SELECT * FROM mybb_konkurs_pytania WHERE id = {$b['pid']}");
$m = $db->fetch_array($q);
$q = $db->query("SELECT * FROM mybb_users WHERE uid = {$b['uid']}");
$u = $db->fetch_array($q);
$date = my_date($mybb->settings['dateformat'], $b['dateline']);
$time = my_date($mybb->settings['timeformat'], $b['dateline']);
$odp .= '<tr><td class="smalltext">'.$m['tytul'].'</td><td class="smalltext">'.$b['odpowiedz'].' <br /><br />Wysłał: <b>'.$u['username'].'</b></td><td class="smalltext">'.$date.', '.$time.'</td></tr>';
}
}
else
{
$odp .= '<tr><td class="pm_alert" colspan="3">Brak zgłoszeń</td></tr>';
}
eval("\$out .= \"".$templates->get("konkurs_odpowiedzi")."\";");
}
else
{
error_no_permission();
}
}
else
{
$q = $db->query("SELECT * FROM mybb_konkurs_pytania");
$pytania = '';
if($db->num_rows($q) != 0)
{
while($p = $db->fetch_array($q))
{
$date = my_date($mybb->settings['dateformat'], $p['dateline']);
$time = my_date($mybb->settings['timeformat'], $p['dateline']);
$pytania .= '<tr><td><a href="konkurs.php?konkurs='.$p['id'].'">'.$p['tytul'].'</a></td><td>'.$date.', '.$time.'</td></tr>';
}
}
else
{
$pytania .= '<tr><td class="pm_alert" colspan="2">Brak organizowanych konkursów</td></tr>';
}
eval("\$out .= \"".$templates->get("konkurs_main")."\";");
}
$out .= "</body></html>";
output_page($out);
?>
2012-08-19, 07:20 PM
https://www.phpbb.com/kb/article/parse-e...vald-code/
sorry for my other post i has just released that it can be done without posting the codes again , my bad!
regards,
sorry for my other post i has just released that it can be done without posting the codes again , my bad!
regards,