Portal Bezpieczeństwa Powiatu Wejherowskiego 12
' => '
Gru
', '
11
' => '
Lis
', '
10
' => '
Paź
', '
09
' => '
Wrz
', '
08
' => '
Sie
', '
07
' => '
Lip
', '
06
' => '
Cze
', '
05
' => '
Maj
', '
04
' => '
Kwi
', '
03
' => '
Mar
', '
02
' => '
Lut
', '
01
' => '
Sty
')); } $skrypt=$_SERVER[PHP_SELF]; $link = mysql_connect('localhost', 'bezpiecznypowiat', 'mYG.F_JN@AZ1'); mysql_query("SET NAMES 'utf8' "); $db_selected = mysql_select_db('bezpiecznypowiat', $link); ?>
80) { echo '
'.ostrzezenie().'

'; } $s=''; $gdy="WHERE public='1'"; if ($_GET[s]) { $gdy="WHERE (tresc LIKE '%".strtr($_GET[s], array("'" => '', '`' => ''))."%' OR tytul LIKE '%".strtr($_GET[s], array("'" => '', '`' => ''))."%') AND (public='1')"; $s='&s='.strtr($_GET[s], array("'" => '', '`' => '')); echo '

'; } //echo $gdyby."
"; $wynik = mysql_query("SELECT * FROM art $gdy"); if (!mysql_num_rows($wynik)) { echo '

Nie znaleziono podanej frazy na portalu.

'; } $max=ceil(mysql_num_rows($wynik)/10); if (!$_GET['p']) {$strona=1;} else {$strona=strtr($_GET['p'], array ("'" => ''));} if ($strona>$max) { $strona=$max;} if ($strona<1) { $strona=1;} $nowsza=$strona-1; $starsza=$strona+1; if ($nowsza>$max) { $nowsza=$max;} if ($starsza<1) { $starsza=1;} $alfa='LIMIT '.(($strona-1)*10).',10 '; if ($_GET[l]) {$alfa='';} if ($_GET[art]) {$gdy="WHERE lp='".$_GET[art]."' AND public='1'";} $artykuly = mysql_query("SELECT * FROM art $gdy ORDER BY data DESC $alfa "); while ($row = mysql_fetch_assoc($artykuly)) { $tresc=strtr(zamien($row[tresc]), array('images/stories' => '/download', '/prezentacje' => '')); if ($row[data]>'2015-11-20') { $tresc=strtr(zamien("

$tresc

"), array("\n" => "

")); $tresc=strtr(zamien("$tresc"), array("

{[(" => "{[(", ")]}

" => ")]}", "

  • " => "
  • ", "
  • " => "", "

    " => "", "

    " => "", "

      " => "
        ", "

          " => "
            ", "

      " => "
    ", "

    " => "", "

    "'; if (is_dir("/fotki/$gal/")) { $tresc=strtr($tresc, array('{[('.$gal.')]}' => "

    ")); } else { $tresc=strtr($tresc, array('{[('.$gal.')]}' => "
    ")); } } $tyt=''; $dat=''; if ($_GET[l]){ $tyt='style="border-bottom-right-radius: 15px 15px;"'; $dat='style="border-bottom-left-radius: 15px 15px;"';} echo ' '; //if ($_GET[s]) //{ //$x=strtr($_GET[s], array("'" => '', '`' => '')); //$tresc=strtr($tresc, array( $x => "$x")); //} if (!$_GET[l]) { echo '
    '.$tresc.'

    '; } //$data=substr($row[publish_up],0,strpos($row[publish_up],' ')); //$tytul=$row[title]; //$numer=$row[lp]; //$tresc=strtr($tresc, array('images/stories' => '/download', '/prezentacje' => '')); //$fotki=$row[images]; //$linijka=mysql_query("UPDATE art SET fotki='$tresc' WHERE lp='$numer' "); //$linijka= mysql_query("INSERT INTO `art` SET data='$data', tresc='$tresc', tytul='$tytul', fotki='$fotki' "); //if(! $linijka ) {echo mysql_error().'
    ';} } if ($_GET[l]) { echo '
    '; } if ((!$_GET[art]) and (!$_GET[l])) { echo '
    '; if ($strona>1) {echo ""; } if ($strona>2) {echo ""; } echo ""; if ($strona<$max-1) {echo ""; } if ($strona<$max) {echo ""; } echo '
    '; } ?>