Remove some more unused code
This commit is contained in:
@@ -1,17 +0,0 @@
|
|||||||
<p>
|
|
||||||
<h4>Novinky</h4>
|
|
||||||
</p>
|
|
||||||
<table>
|
|
||||||
<!-- <tr><td>21. 4. 2009</td>
|
|
||||||
<td><a href="mainkrk.php?page=mcr_2009/rozpis_rog2009&lang=de">Ausschreibung</a> sind da.</td></tr> -->
|
|
||||||
<tr><td>4. 6. 2009</td>
|
|
||||||
<td>There is an <a href="http://cyklogaining.tojnar.cz/pages/invitation.pdf">English invitation</a> and/und eine <a href="http://cyklogaining.tojnar.cz/pages/einladung.pdf">Deutsche Einladung</a>.
|
|
||||||
</td></tr>
|
|
||||||
<tr><td>11. 5. 2009</td>
|
|
||||||
<td>Byly zveřejněny <a href="maincg.php?page=rozpis_cg2009">rozpis cyklogainingu</a> a <a href="maincg.php?page=rozpis_mtbo2009">rozpis MTBO</a> veřejného závodu MTBO na klasické trati.
|
|
||||||
</td></tr>
|
|
||||||
<tr><td>21. 4. 2009</td>
|
|
||||||
<td>Byly spuštěny <a href="maincg.php?page=cyklogaining">webové stránky</a> cyklogainingu 2009 a veřejného závodu MTBO na klasické trati. Přijměte prosím <a href="maincg.php?page=cykloupoutavka">úvodní pozvánku</a>
|
|
||||||
na závod a podívejte se na poněkud netradiční <a href="maincg.php?page=lob2002">fotky z prostoru závodu</a>.
|
|
||||||
</td></tr>
|
|
||||||
</table>
|
|
||||||
184
en.phps
184
en.phps
@@ -1,184 +0,0 @@
|
|||||||
<?php
|
|
||||||
define("REQUIRED","(required)");
|
|
||||||
define("TEAM_NAME","Team name");
|
|
||||||
define("FIRSTNAME","First name");
|
|
||||||
define("LASTNAME","Last name");
|
|
||||||
define("EMAIL","E-Mail");
|
|
||||||
define("RENT","rent");
|
|
||||||
define("RACE_SELECTION","Race duration");
|
|
||||||
define("BORN","Birthday");
|
|
||||||
define("BORN_D_HELP","Day of the birth, e.g. 01 = 1st day of a month");
|
|
||||||
define("BORN_M_HELP","Month of the birth, e.g. 01 = January");
|
|
||||||
define("BORN_Y_HELP","Year of the birth, e.g. 1980");
|
|
||||||
define("TEAM","Team");
|
|
||||||
define("SEX","Gender");
|
|
||||||
define("I_HAVENT","Need to rent");
|
|
||||||
define("MEMBER_1","1<sup>st</sup> team member");
|
|
||||||
define("MEMBER_2","2<sup>nd</sup> team member");
|
|
||||||
define("MEMBER_3","3<sup>rd</sup> team member");
|
|
||||||
define("MEMBER_4","4<sup>th</sup> team member");
|
|
||||||
define("MEMBER_5","5<sup>th</sup> team member");
|
|
||||||
define("CONTACT_PERSON","(contact person)");
|
|
||||||
define("MAN","Man");
|
|
||||||
define("WOMAN","Woman");
|
|
||||||
define("SI","SI chip");
|
|
||||||
define("SUBMIT","Submit");
|
|
||||||
define("REMOVE_MEMBER","Remove a member");
|
|
||||||
define("ADD_MEMBER","Add a member");
|
|
||||||
define("CAT6HOURS","6 hours");
|
|
||||||
define("CAT12HOURS","12 hours");
|
|
||||||
define("CAT24HOURS","24 hours");
|
|
||||||
define("MIX_HELP","At least one man and one woman in a team");
|
|
||||||
define("MIX","Mix");
|
|
||||||
define("MEN","Men");
|
|
||||||
define("WOMEN","Women");
|
|
||||||
define("TEAM_SEX","Class");
|
|
||||||
define("TEAM_AGE","Age class");
|
|
||||||
define("JUNIORS_HELP","All team members must be 20 years old or younger.");
|
|
||||||
define("SENIORS_HELP","All team members must be 40 years old or older.");
|
|
||||||
define("TEAM_CLUB","Club");
|
|
||||||
define("TEAM_PASS","Password");
|
|
||||||
define("VETERANS","Veterans");
|
|
||||||
define("JUNIORS","Juniors");
|
|
||||||
define("OPEN","Open");
|
|
||||||
define("RACE","Race");
|
|
||||||
define("CATEGORY","Class");
|
|
||||||
define("M1NAME","1<sup>st</sup> member's name");
|
|
||||||
define("M1GENDER","1<sup>st</sup> member's gender");
|
|
||||||
define("M1SI","1<sup>st</sup> member's SI chip");
|
|
||||||
define("M2NAME","2<sup>nd</sup> member's name");
|
|
||||||
define("M2GENDER","2<sup>nd</sup> member's gender");
|
|
||||||
define("M2SI","2<sup>nd</sup> member's SI chip");
|
|
||||||
define("M3NAME","3<sup>rd</sup> member's name");
|
|
||||||
define("M3GENDER","3<sup>rd</sup> member's gender");
|
|
||||||
define("M3SI","3<sup>rd</sup> member's SI chip");
|
|
||||||
define("M4NAME","4<sup>th</sup> member's name");
|
|
||||||
define("M4GENDER","4<sup>th</sup> member's gender");
|
|
||||||
define("M4SI","4<sup>th</sup> member's SI chip");
|
|
||||||
define("M5NAME","5<sup>th</sup> member's name");
|
|
||||||
define("M5GENDER","5<sup>th</sup> member's gender");
|
|
||||||
define("M5SI","5<sup>th</sup> member's SI chip");
|
|
||||||
define("ENTRY_EDIT","Edit your entries");
|
|
||||||
define("ERROR","Error");
|
|
||||||
define("NOT_SENT","Not sent.");
|
|
||||||
define("GOBACK","«Back");
|
|
||||||
define("ENTRY","Entry");
|
|
||||||
define("SENT","Sent.");
|
|
||||||
define("ENTRYACCEPTED","Entry was accepted.");
|
|
||||||
define("ID","ID");
|
|
||||||
define("SI","SI");
|
|
||||||
define("NOTSAVED","Not saved");
|
|
||||||
define("THEREISATEAMWITHTHESAMENAME","There is a team with the same name");
|
|
||||||
define("SAVED","Saved");/***/
|
|
||||||
define("MISS1Y","Year of the birth of the 1<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS1M","Month of the birth of the 1<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS1D","Day of the birth of the 1<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS1SI","SI chip number of the 1<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS1MAIL","E-Mail of the 1<sup>st</sup> team member is missing.");
|
|
||||||
define("MISS1SEX","Gender of the 1<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS1LNAME","Surname of the 1<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS1FNAME","First name of the 1<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS2Y","Year of the birth of the 2<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS2M","Month of the birth of the 2<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS2D","Day of the birth of the 2<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS2SI","SI chip number of the 2<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS2SEX","Gender of the 2<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS2LNAME","Surname of the 2<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS2FNAME","First name of the 2<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS3Y","Year of the birth of the 3<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS3M","Month of the birth of the 3<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS3D","Day of the birth of the 3<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS3SI","SI chip number of the 3<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS3SEX","Gender of the 3<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS3LNAME","Surname of the 3<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS3FNAME","First name of the 3<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS4Y","Year of the birth of the 4<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS4M","Month of the birth of the 4<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS4D","Day of the birth of the 4<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS4SI","SI chip number of the 4<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS4SEX","Gender of the 4<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS4LNAME","Surname of the 4<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS4FNAME","First name of the 4<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS5Y","Year of the birth of the 5<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS5M","Month of the birth of the 5<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS5D","Day of the birth of the 5<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS5SI","SI chip number of the 5<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS5SEX","Gender of the 5<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS5LNAME","Surname of the 5<sup>th</sup> team member is missing.");
|
|
||||||
define("MISS5FNAME","First name of the 5<sup>th</sup> team member is missing.");
|
|
||||||
define("MISSTNAME","Team name is missing.");
|
|
||||||
define("MISSTCAT","Race duration is missing.");
|
|
||||||
define("MISSTSEX","Class is missing.");
|
|
||||||
define("MISSTPASS","Password is missing.");
|
|
||||||
define("MISSTAGE","Age class is missing.");
|
|
||||||
define("LISTOFTHEREGTEAMS","List of the registered teams");
|
|
||||||
define("REGTEAM","Team registration");
|
|
||||||
define("IFNOTOBTAINEDMAIL","Thank you. for your entry. It was registered in the entry database. You can edit it yourselves using the name of your team and password. On the address of the 1st member of your team you should receive a confirmation mail summarizing your entry. In case it doesn’t arrive, please contact us via e-mail: <a href=\"mailto:tojnar@gmail.com\">tojnar@gmail.com</a>");
|
|
||||||
|
|
||||||
|
|
||||||
define("PROFILE","Profile");
|
|
||||||
define("YES","Yes");
|
|
||||||
define("NO","No");//ne
|
|
||||||
define("AGE","Age");//věk
|
|
||||||
define("BED","Accommodation during race");//Nocleh během závodu
|
|
||||||
define("PERFORMANCE","My contemporary shape");//Moje fyzička
|
|
||||||
define("PERFORM1","I am a very well trained rogainer");//Vysoce trénovaný závodník
|
|
||||||
define("PERFORM2","My shape is supernormal");//Nadprůměrně zdatný závodník
|
|
||||||
define("PERFORM3","I'm an average rogainer");//Průměrně zdatný závodník
|
|
||||||
define("PERFORM4","I'm rather tourist");//Spíše turista
|
|
||||||
define("PERFORM5","I am a Sunday sportsman");//Sváteční sportovec
|
|
||||||
define("SKILL","My orienteering skills");//Moje orientační schopnosti
|
|
||||||
define("SKILL1","I'm skilled rogainer");//Zkušený závodník
|
|
||||||
define("SKILL2","I'm average rogainer");//Průměrně zdatný závodník
|
|
||||||
define("SKILL3","Mapping is problem for me. I'm prefering \"mapper\".");//Mapování mi činí problémy, preferuji „mapaře”
|
|
||||||
define("SKILL4","I'm an absolute beginner. I can't start without \"mapper\".");//Úplný začátečník, bez „mapaře” nevystartuji.
|
|
||||||
define("DATA","Imformations about advertiser");//Údaje o inzerentovi
|
|
||||||
define("MYPREF","My preferences");//Moje preference
|
|
||||||
define("NOTE","Notes");//Poznámka
|
|
||||||
define("AMBITIONS","My ambitions");//Ambice
|
|
||||||
define("AMB1","I'm expecting enplacement in the top of start field.");//Umístění ve špičce startovního pole
|
|
||||||
define("AMB2","I'm expecting enplacement in the head of start field.");//Umístění v horní části startovního pole
|
|
||||||
define("AMB3","I want show rather sport accomplishment");//Spíše sportovní výkon
|
|
||||||
define("AMB4","");//Závod, ale pohoda
|
|
||||||
define("AMB5","");//Nikam se nehnat, turistika
|
|
||||||
define("AMB6","Social thing");//Společenská záležitost
|
|
||||||
define("AMB7","I want commit suicide (death in pair) :-)");//Sebevražda - smrt ve dvou :-)
|
|
||||||
define("AMB8","I want visit Tojnar.");//Návštěva Tojnárka
|
|
||||||
define("MISSNAMEORPASS","You didn't enter e-mail or password");//Nevyplnili jste e-mail nebo heslo.
|
|
||||||
define("LOGINFORM","Log in");//Přihlášení
|
|
||||||
define("LOG-IN","Log in");//Přihlásit
|
|
||||||
define("PASSWORD","Password");//Heslo
|
|
||||||
define("SEEKINGPARTNER","I'm seeking partner.");//Hledám partnera
|
|
||||||
define("OFFER","I offer");//Nabízím
|
|
||||||
define("ORIENTATION","Orientation skill");//Orientace
|
|
||||||
define("SHAPE","Shape");//Fyzička
|
|
||||||
define("BORNYEAR","Year od born");//Rok narození
|
|
||||||
define("STARTDAY","28<sup>th</sup> June");//28. 6. 2009
|
|
||||||
define("MISSNAME","You didn't enter firstname.");//Nevyplnili jste jméno.
|
|
||||||
define("MISSLAST","You didn't enter lastname.");//Nevyplnili jste příjmení.
|
|
||||||
define("MISSMAIL","You didn't enter e-mail.");//Nevyplnili jste E-mail.
|
|
||||||
define("MISSPASS","You didn't enter password.");//Nevyplnili jste heslo.
|
|
||||||
define("MISSSEX","You didn't select sex.");//Nevyplnili jste pohlaví.
|
|
||||||
define("MISSAMB","You didn't select ambitions. You must check at least one option.");//Nevyplnili jste ambice. Musíte zaškrtnout alespoň jednu volbu.
|
|
||||||
define("MISSBED","You didn't select if you want accommodation.");//Nevyplnili jste nocleh.
|
|
||||||
define("MISSAGE","You didn't enter year of the birth.");//Nevyplnili jste rok narození.
|
|
||||||
define("MISSPERFORM","You didn't select your shape.");//Nevyplnili jste svou fyzičku.
|
|
||||||
define("MISSSKILL","You didn't select your orientation skill.");//Nevyplnili jste své orientační schopnosti.
|
|
||||||
define("MISSTSEX","You didn't select team composition.");//Nevyplnili jste složení týmu.
|
|
||||||
define("MISSRACE","You didn't select race.");//Nevyplnili jste trať závodu.
|
|
||||||
define("MISSCATEGORY","You didn't select race.");//Nevyplnili jste věkovou kategorii.
|
|
||||||
define("TOOYOUNG","You must be older than 0 years.");//Musíte být starší než 0 let.
|
|
||||||
define("THEREISAMANWITHTHESAMEEMAIL","There is someone registered with this e-mail.");//S tímto emailem je již někdo registrován.
|
|
||||||
define("ORDERBY","Order by:");//
|
|
||||||
define("ORDERNAME","lastname");//
|
|
||||||
define("ORDERDATE","registration date");//
|
|
||||||
define("ORDERMAIL","e-mail");//
|
|
||||||
define("ORDERTSEX","team sex");//
|
|
||||||
define("TEAMNOTEXISTSORPASSNOTVALID","This person doesn't exist or you enter wrong password.");//Osoba neexistuje nebo jste zadali špatné heslo
|
|
||||||
define("","");
|
|
||||||
define("","");
|
|
||||||
define("","");
|
|
||||||
define("","");
|
|
||||||
define("","");
|
|
||||||
define("","");
|
|
||||||
?>
|
|
||||||
BIN
images/cz.png
BIN
images/cz.png
Binary file not shown.
|
Before Width: | Height: | Size: 476 B |
BIN
images/de.png
BIN
images/de.png
Binary file not shown.
|
Before Width: | Height: | Size: 545 B |
BIN
images/def.png
BIN
images/def.png
Binary file not shown.
|
Before Width: | Height: | Size: 602 B |
BIN
images/en.png
BIN
images/en.png
Binary file not shown.
|
Before Width: | Height: | Size: 599 B |
BIN
images/enf.png
BIN
images/enf.png
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 KiB |
BIN
images/f.png
BIN
images/f.png
Binary file not shown.
|
Before Width: | Height: | Size: 849 B |
171
maincg.php
171
maincg.php
@@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
$lang = $_GET['lang'] ?? 'cs';
|
$page = $_GET['page'] ?? 'cyklogaining';
|
||||||
$page = $_GET['page'] ?? '';
|
|
||||||
?>
|
?>
|
||||||
<!doctype html public "-//W3C//DTD HTML 4.01//EN">
|
<!doctype html public "-//W3C//DTD HTML 4.01//EN">
|
||||||
<html>
|
<html>
|
||||||
@@ -36,63 +35,7 @@ $page = $_GET['page'] ?? '';
|
|||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<?php echo '<script type="text/javascript">';
|
<script type="text/javascript">
|
||||||
if ($lang == 'en') {
|
|
||||||
?>
|
|
||||||
hs.lang = {
|
|
||||||
cssDirection: 'ltr',
|
|
||||||
loadingText : 'Loading...',
|
|
||||||
loadingTitle : 'Click to cancel',
|
|
||||||
focusTitle : 'Click to bring to front',
|
|
||||||
fullExpandTitle : 'Expand to actual size (f)',
|
|
||||||
fullExpandText : 'Full size',
|
|
||||||
creditsText : 'Powered by <i>Highslide JS</i>',
|
|
||||||
creditsTitle : 'Go to the Highslide JS homepage',
|
|
||||||
previousText : 'Previous',
|
|
||||||
previousTitle : 'Previous (arrow left)',
|
|
||||||
nextText : 'Next',
|
|
||||||
nextTitle : 'Next (arrow right)',
|
|
||||||
moveTitle : 'Move',
|
|
||||||
moveText : 'Move',
|
|
||||||
closeText : 'Close',
|
|
||||||
closeTitle : 'Close (esc)',
|
|
||||||
resizeTitle : 'Resize',
|
|
||||||
playText : 'Play',
|
|
||||||
playTitle : 'Play slideshow (spacebar)',
|
|
||||||
pauseText : 'Pause',
|
|
||||||
pauseTitle : 'Pause slideshow (spacebar)',
|
|
||||||
number : 'Image %1 of %2',
|
|
||||||
restoreTitle : 'Click to close image, click and drag to move. Use arrow keys for next and previous.'
|
|
||||||
};
|
|
||||||
<?php
|
|
||||||
} elseif ($lang == 'de') {
|
|
||||||
?>
|
|
||||||
hs.lang = {
|
|
||||||
loadingText : 'Lade...',
|
|
||||||
loadingTitle : 'Klick zum Abbrechen',
|
|
||||||
focusTitle : 'Klick um nach vorn zu bringen',
|
|
||||||
fullExpandTitle : 'Zur Originalgröße erweitern',
|
|
||||||
fullExpandText : 'Vollbild',
|
|
||||||
creditsText : 'Powered by <i>Highslide JS</i>',
|
|
||||||
creditsTitle : 'Gehe zur Highslide JS Homepage',
|
|
||||||
previousText : 'Voriges',
|
|
||||||
previousTitle : 'Voriges (Pfeiltaste links)',
|
|
||||||
nextText : 'Nächstes',
|
|
||||||
nextTitle : 'Nächstes (Pfeiltaste rechts)',
|
|
||||||
moveTitle : 'Verschieben',
|
|
||||||
moveText : 'Verschieben',
|
|
||||||
closeText : 'Schließen',
|
|
||||||
closeTitle : 'Schließen (Esc)',
|
|
||||||
resizeTitle : 'Größe wiederherstellen',
|
|
||||||
playText : 'Abspielen',
|
|
||||||
playTitle : 'Slideshow abspielen (Leertaste)',
|
|
||||||
pauseText : 'Pause',
|
|
||||||
pauseTitle : 'Pausiere Slideshow (Leertaste)',
|
|
||||||
restoreTitle : 'Klick um das Bild zu schließen, klick und ziehe um zu verschieben. Benutze Pfeiltasten für vor und zurück.'
|
|
||||||
};
|
|
||||||
<?php
|
|
||||||
} else {
|
|
||||||
?>
|
|
||||||
hs.lang = {
|
hs.lang = {
|
||||||
loadingText : 'Načítá se...',
|
loadingText : 'Načítá se...',
|
||||||
loadingTitle : 'Klikněte pro zrušení',
|
loadingTitle : 'Klikněte pro zrušení',
|
||||||
@@ -116,128 +59,30 @@ hs.lang = {
|
|||||||
pauseTitle : 'Pozastavit slideshow (mezerník)',
|
pauseTitle : 'Pozastavit slideshow (mezerník)',
|
||||||
restoreTitle : 'Klikněte pro zavření obrázku, klikněte a táhněte pro jeho přesunutí. Použijte šipky na klávesnici pro přesun na další a předchozí.'
|
restoreTitle : 'Klikněte pro zavření obrázku, klikněte a táhněte pro jeho přesunutí. Použijte šipky na klávesnici pro přesun na další a předchozí.'
|
||||||
};
|
};
|
||||||
<?php
|
</script>
|
||||||
}
|
|
||||||
echo '</script>';
|
|
||||||
?>
|
|
||||||
<title><?php include './pages/title_cg.php'; ?></title>
|
<title><?php include './pages/title_cg.php'; ?></title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="header"><span class="title"><?php include './pages/title_cg.php'; ?></span><br><span class="slogan"><?php include './pages/slogan.php'; ?></span>
|
<div class="header"><span class="title"><?php include './pages/title_cg.php'; ?></span><br><span class="slogan"><?php include './pages/slogan.php'; ?></span>
|
||||||
<?php
|
|
||||||
echo '<span class="floatright">';
|
|
||||||
if (file_exists('pages/' . $page . '-de.php') || file_exists('pages/' . $page . '/' . $page . '-de.php')) {
|
|
||||||
if (file_exists('pages/' . $page . '/' . $page . '-de.php')) {
|
|
||||||
$lngc = 'de';
|
|
||||||
$icona = '<a href="maincg.php?page=' . $page . '/' . $page . "&lang=$lngc\"><img src=\"/images/" . $lngc . 'f.png" alt=""></a>';
|
|
||||||
} else {
|
|
||||||
$lngc = 'de';
|
|
||||||
$icona = '<a href="maincg.php?page=' . $page . "&lang=$lngc\"><img src=\"/images/" . $lngc . 'f.png" alt=""></a>';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($lang == 'de') {
|
|
||||||
echo '';
|
|
||||||
} else {
|
|
||||||
echo $icona;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (file_exists('pages/' . $page . '-en.php') || file_exists('pages/' . $page . '/' . $page . '-en.php')) {
|
|
||||||
if (file_exists('pages/' . $page . '/' . $page . '-en.php')) {
|
|
||||||
$lngc = 'en';
|
|
||||||
$icona = '<a href="maincg.php?page=' . $page . '/' . $page . "&lang=$lngc\"><img src=\"/images/" . $lngc . 'f.png" alt=""></a>';
|
|
||||||
} else {
|
|
||||||
$lngc = 'en';
|
|
||||||
$icona = '<a href="maincg.php?page=' . $page . "&lang=$lngc\"><img src=\"/images/" . $lngc . 'f.png" alt=""></a>';
|
|
||||||
}
|
|
||||||
if ($lang == 'en') {
|
|
||||||
echo '';
|
|
||||||
} else {
|
|
||||||
echo $icona;
|
|
||||||
}
|
|
||||||
} elseif (!isset($page) && file_exists('pages/cyklogaining-en.php')) {
|
|
||||||
$lngc = 'en';
|
|
||||||
$icona = "<a href=\"maincg.php?page=cyklogaining&lang=$lngc\"><img src=\"/images/" . $lngc . 'f.png" alt=""></a>';
|
|
||||||
if ($lang == 'en') {
|
|
||||||
echo '';
|
|
||||||
} else {
|
|
||||||
echo $icona;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (file_exists('pages/' . $page . '.php') || file_exists('pages/' . $page . '/' . $page . '.php')) {
|
|
||||||
if (file_exists('pages/' . $page . '/' . $page . '.php')) {
|
|
||||||
$lngc = '';
|
|
||||||
$icona = '<a href="maincg.php?page=' . $page . '/' . $page . "$lngc\"><img src=\"/images/" . $lngc . 'f.png" alt=""></a>';
|
|
||||||
} else {
|
|
||||||
$lngc = '';
|
|
||||||
$icona = '<a href="maincg.php?page=' . $page . "$lngc\"><img src=\"/images/" . $lngc . 'f.png" alt=""></a>';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($lang == 'cs' || empty($lang)) {
|
|
||||||
echo '';
|
|
||||||
} else {
|
|
||||||
echo $icona;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ($lang == 'en' && empty($page)) {
|
|
||||||
$lngc = '';
|
|
||||||
$icona = '<a href="maincg.php?page=cyklogaining"><img src="/images/' . $lngc . 'f.png" alt=""></a>';
|
|
||||||
echo $icona;
|
|
||||||
}
|
|
||||||
echo '</span>';
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="top-menu">
|
<div class="top-menu">
|
||||||
<?php
|
<?php
|
||||||
if (empty($lang) || $lang == 'cs') {
|
include './pages/cg_topmenu.php';
|
||||||
include './pages/cg_topmenu.php';
|
|
||||||
} elseif ($lang == 'en' && file_exists('./pages/cg_topmenu-en.php')) {
|
|
||||||
include './pages/cg_topmenu-en.php';
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="sidebar"><div class="sidebar-content">
|
<div class="sidebar"><div class="sidebar-content">
|
||||||
<ul>
|
<ul>
|
||||||
<?php if (str_contains($page, 'mcr_2009') && $lang == 'en') {
|
<?php
|
||||||
include './pages/mcr_2009/menumcr_2009-en.php';
|
include './pages/menucg.php';
|
||||||
} elseif (str_contains($page, 'mcr_2009') && $lang == 'de') {
|
|
||||||
include './pages/mcr_2009/menumcr_2009-de.php';
|
|
||||||
} elseif (str_contains($page, 'mcr_2009')) {
|
|
||||||
include './pages/mcr_2009/menumcr_2009.php';
|
|
||||||
} else {
|
|
||||||
if (empty($lang) || $lang == 'cs') {
|
|
||||||
include './pages/menucg.php';
|
|
||||||
} else {
|
|
||||||
include './pages/menucg-en.php';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</ul><br><br><br>
|
</ul><br><br><br>
|
||||||
</div></div><div class="main"><div class="main-content">
|
</div></div><div class="main"><div class="main-content">
|
||||||
<?php $escaped_page = str_replace([')', '(', '\\', '"', "\'", ';', '{', '}', '$', '[', ']', '<', '>'], '', $page);
|
<?php $escaped_page = str_replace([')', '(', '\\', '"', "\'", ';', '{', '}', '$', '[', ']', '<', '>'], '', $page);
|
||||||
$jazycek = $lang === 'cs' ? '' : '-' . $lang;
|
if (file_exists("pages/$escaped_page.php")) {
|
||||||
if ($page === '') {
|
|
||||||
if ($lang == 'cs') {
|
|
||||||
include './pages/cyklogaining.php';
|
|
||||||
} else {
|
|
||||||
include './pages/cyklogaining-en.php';
|
|
||||||
}
|
|
||||||
} elseif ($page == 'mcr_2009') {
|
|
||||||
include "./pages/mcr_2009/mcr_2009$jazycek.php";
|
|
||||||
} elseif ($page == 'clanky') {
|
|
||||||
include "./pages/clanky/clanky$jazycek.php";
|
|
||||||
} elseif ($page == 'akce_ob') {
|
|
||||||
include "./pages/akce_ob/akce_ob$jazycek.php";
|
|
||||||
} elseif ($page == 'akce_litvinov') {
|
|
||||||
include "./pages/akce_litvinov/akce_litvinov$jazycek.php";
|
|
||||||
} elseif ($page == 'ski_krusnohori') {
|
|
||||||
include "./pages/ski_krusnohori/ski_krusnohori$jazycek.php";
|
|
||||||
} elseif ($lang === 'cs' && file_exists("pages/$escaped_page.php")) {
|
|
||||||
include "./pages/$escaped_page.php";
|
include "./pages/$escaped_page.php";
|
||||||
} elseif (file_exists("pages/$escaped_page-" . $lang . '.php')) {
|
|
||||||
include "./pages/$escaped_page-" . $lang . '.php';
|
|
||||||
} else {
|
} else {
|
||||||
include '/pages/404.php';
|
include './pages/404.php';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div></div>
|
</div></div>
|
||||||
|
|||||||
27
printcg.php
27
printcg.php
@@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
$lang = $_GET['lang'] ?? 'cs';
|
$page = $_GET['page'] ?? 'cyklogaining';
|
||||||
$page = $_GET['page'] ?? '';
|
|
||||||
?>
|
?>
|
||||||
<!doctype html public "-//W3C//DTD HTML 4.01//EN">
|
<!doctype html public "-//W3C//DTD HTML 4.01//EN">
|
||||||
<html>
|
<html>
|
||||||
@@ -10,32 +9,12 @@ $page = $_GET['page'] ?? '';
|
|||||||
<link type="image/png" href="/images/logo_krk16.png" rel="shortcut icon">
|
<link type="image/png" href="/images/logo_krk16.png" rel="shortcut icon">
|
||||||
<title>Tisk</title>
|
<title>Tisk</title>
|
||||||
</head>
|
</head>
|
||||||
<body><!-- onload="window.print()"-->
|
<body>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<?php
|
<?php
|
||||||
$escaped_page = str_replace([')', '(', '\\', '"', "\'", ';', '{', '}', '$', '[', ']', '<', '>'], '', $page);
|
$escaped_page = str_replace([')', '(', '\\', '"', "\'", ';', '{', '}', '$', '[', ']', '<', '>'], '', $page);
|
||||||
if ($page === '') {
|
if (file_exists("pages/$escaped_page.php")) {
|
||||||
if ($lang == 'cs') {
|
|
||||||
include './pages/cyklogaining.php';
|
|
||||||
} else {
|
|
||||||
include './pages/cyklogaining-en.php';
|
|
||||||
}
|
|
||||||
} elseif ($page == 'cestopisy') {
|
|
||||||
include './pages/cestopisy/cestopisy.php';
|
|
||||||
} elseif ($page == 'clanky') {
|
|
||||||
include './pages/clanky/clanky.php';
|
|
||||||
} elseif ($page == 'akce_ob') {
|
|
||||||
include './pages/akce_ob/akce_ob.php';
|
|
||||||
} elseif ($page == 'akce_litvinov') {
|
|
||||||
include './pages/akce_litvinov/akce_litvinov.php';
|
|
||||||
} elseif ($page == 'ski_krusnohori') {
|
|
||||||
include './pages/ski_krusnohori/ski_krusnohori.php';
|
|
||||||
} elseif ($page == 'zakonceni_2008') {
|
|
||||||
include './pages/zakonceni_2008/zakonceni_2008.php';
|
|
||||||
} elseif ($lang == 'cs' && file_exists("pages/$escaped_page.php")) {
|
|
||||||
include "./pages/$escaped_page.php";
|
include "./pages/$escaped_page.php";
|
||||||
} elseif (file_exists("pages/$escaped_page-" . $lang . '.php')) {
|
|
||||||
include "./pages/$escaped_page-" . $lang . '.php';
|
|
||||||
} else {
|
} else {
|
||||||
include './pages/404.php';
|
include './pages/404.php';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user