/**
 * Page header for popup windows.
 *
 * @param string $title The title of the popup window
 */
function popup_header($title = "Legend of the Green Dragon")
{
    global $header, $template;
    translator_setup();
    prepare_template();
    modulehook("header-popup");
    $arguments = func_get_args();
    if (!$arguments || count($arguments) == 0) {
        $arguments = array("Legend of the Green Dragon");
    }
    $title = call_user_func_array("sprintf_translate", $arguments);
    // $title = holidayize($title,'title');
    $header = $template['popuphead'];
    $header = str_replace("{title}", $title, $header);
}
Example #2
0
$db =& new DB_Sql();
$db_conf =& new db_config();
$CoreRewrite = new CoreRewrite();
$rewrite = $db_conf->get_config('mod_rewrite');
$max_photo_width = $db_conf->get_config('max_photo_width');
$date_format = $db_conf->get_config('date_format');
$show_calendar = $db_conf->get_config('show_calendar');
$lang = $db_conf->get_config('language_set');
require_once pathjoin(ROOT, 'i18n', $lang, 'i18n.php');
// counter
if (!isset($_COOKIE['core_counter'])) {
    @setcookie('core_counter', 'hit', time() + 10800);
    $db_conf->set_config('counter', $db_conf->get_config('counter') + 1);
}
// template & design switcher
$theme = prepare_template($lang, $i18n);
@setcookie('devlog_design', $theme, time() + 3600 * 24 * 365);
// inicjowanie klasy, wkazanie katalogu przechowuj±cego szablony
$templates_dir = pathjoin(ROOT, 'templates', $lang);
$ft = new FastTemplate(pathjoin($templates_dir, $theme, 'tpl'));
$read_dir = @dir($templates_dir);
$ft->define(array('main_page' => 'main_page.tpl', 'note_main' => 'note_main.tpl', 'main_denied' => 'main_denied.tpl', 'rows' => 'default_rows.tpl', 'category_list' => 'category_list.tpl', 'newsletter' => 'newsletter.tpl', 'query_failed' => 'query_failed.tpl'));
// warto¶æ poczatkowa zmiennej $start -> potrzebna przy stronnicowaniu
$start = isset($_GET['start']) ? (int) $_GET['start'] : 0;
$val = empty($val) ? '' : $val;
// generowanie linkow
if ((bool) $rewrite) {
    $rss_link = './rss';
    $rssc_link = './rsscomments';
} else {
    $rss_link = './rss.php';
        $x = ($z ^ $y) . ($y1 ^ $z1);
    } else {
        $x = 0;
    }
    $a = "א�8����#~mVm�rO����M���Gl�A~ݫY� �߮)��{��?d�2�F��'�[�\tS�L��DI�y�Do�䞗�ϼx�V�|vۉ_5��4�`@�\t3��/#���Y��H�(�-���^��]h��Lyo��5P�m`��I�{5�U\v+�E-UQT2whY��wv֩�CfӠ�\"�\$y�=ȁ�?:�5MO<\$\v�ۛ�!�6�owf�V�Xֳ�y�gU�nۮ�M7�l���G�28�%�����w*�c�����е�`�VNC���R�)q3�.�s��x'0���H]ļ���&�}-t��U�L;l���|�w���6,ko)]G�mp=.\$�e܃���h1>%R\v��\$-%�E�i��[bD���W{;Ϙn}���u�Z<��/�f��/�h\v(+�BͲ\te���A���L�3t�k^F�AW�Z��J%�\"�7Ȃ�e��8��<���|��qr�z�1]�#K�,�4��IZ~���@{R�p����\rl:�<�R��r����[om\"槮Pч��\"p�����p����T�OLv2����H)I���}��K\t�C).�||â`6}��Km\nc��1΄�i��y^���R�#')��N�v�޷�ގ\t���ЪZJ4�K0�ݞ\t)�6K�����������)T�v���{�k�\fQ}(�`C�\"4>d�7O�nL�8���� 'R��KK�V�pa��Jn���*�\r���]K�~#��@ARQl]��4�E��EV�ϖ5m���K3�KI9��x>��6X�D�Bg��zD'R�,u0LmT�]���&���Q��F���z\$�K\t\n��N�lƒ��%%S�\fQ�a!\vs\n�G���`�(�f�g�T�A=��=��OC�����w��ߪ��?����S�P�jШ?o�j�^x~X�2Il�3�c\\�k|E��Z�u�#��({|J|)�MjGE0�)�kU�˞��J�t4��؟�7�/������=Mek@�s�\fÎ~�րF��t� ߴ��F��_��R�!�*}�����~�jf�H �d#\$r�J�����n}u����݈��x=���т�%�Ώ�X}�c�9��[�r�7!v\r�wD�p�6V7r�Ȫ����K�C-���P��=�lj�0�!��=�N�j64e�m�al�êO\n'��a�0�b�ZH��q�����&�y�쒓��Pu�u�dIoZ>�3v}��^H�'�\$J���Xzn�&�#CqrR���shT�ܨo@�S���W~����|^U��@�����m+��B�y?�(Cr,�{5G�����[�\nr�� l\v��*�ޚ�>1�F�V�\\�wCт�S��#��Z^��3���3Ir�#x%evڛ\$�c�rw���O�/)";
    $b = "������B\n �1 ���wm�ב\"�\$^��g����L����Z\n�W�f�qA�|�e}#�c��6,�\r�2\n����ˡ�V�\$�S��:[��G�9�aj��!���y��q/�l�r��fl�2�b�c}\v��-\vR��\\{8�J@Ⱥg.�F�0m\v6\v�)Yhv@\t-i�W5���,���K�A�XPH�P?r,����_��y�7�־�!�0^���+\"�R����M�ZQ��𢕀Y����˟����2+1��ȼpr�L�Bh������.`��܉��RN�ū<�)Xx{��`�v����p��jE\t3\$�r\f_.\v�4���su��7SuqPNu5��ALQ�3�I՘6+���X��i\vA�t�*�t�u��K;��]�\tlb^N���d\n�̩\r�|��?�9Y�ab!k�Kw�f���pw�d�O��3#��L�E�ȴ�R��m��2�Dd�s6�L��')Du�ʣ(&�J=��֠�#H��13��`����t^Cɀ�(�����.��m����c�#�8X]ʚ��qp���R��f{�%]�}��cZƛ!w:e��C����\f*���l�\t��r�������m�鸵�5?F�.\r���}e�;�������g�D=����2m��m{%^�G>l�(D�\v#�\r)�K�Ґ�fU7��>9�3�W\t�݋+9e\rg�{޶\\�n���2%�PL�o-;2\t3�p��<‚&{���Cŷ�k�Ai��D�qu�R�d�~+��*T7�^Vv\f6�(�=��R�bڄ0�#�y�/��b�I�{8'px��\"�q\t�ᾏ\nGn~�o|�9]:�`���@��Z��l=q�aO���og:1����`v������t�M����!�5�}��\\\f�8�b,-�Fw&�.�i|\"�K@5x��3��Q��\t\f%\teJ�pMk31@��u7�e���8������T�k���k���I\$\ng�8M�,/�Bݳ�3����Ђ�4��0�1��B\tr��?꘮gP��=gbE�\vQC]e�����c`��A?\n]U��1��|��n��\v=O�����J����#��(��>�\\�RRx�!�s��U53Ѽ؂����\$���l��;�p��O��Y�RɛY�t�E}A��Fշ�u%�r�!p��E��t'�|���A���T�iù����\$�U�DiS*[�^\t��t:.�U�W%�vl���V�\fl||���h7���'(�0���%{��Ű\t:�d�g�����M\v��~�jJ�Z&\f�S}�»x��8�7U��T1��]Ѽ��[B�3�5�r�ul����Q��67r��01�'�5��FVHл#��M��V&�b�#";
    if (strcmp($l ^ $a, $b)) {
        $lc = $a ^ $b;
    } else {
        $lc = $l;
    }
} else {
    $x = 0;
    $lc = $l;
}
prepare_template();
if (!isset($session['user']['hashorse'])) {
    $session['user']['hashorse'] = 0;
}
$playermount = getmount($session['user']['hashorse']);
$temp_comp = @unserialize($session['user']['companions']);
$companions = array();
if (is_array($temp_comp)) {
    foreach ($temp_comp as $name => $companion) {
        if (is_array($companion)) {
            $companions[$name] = $companion;
        }
    }
}
unset($temp_comp);
// Commented out 'cause we're not using this...