예제 #1
0
 function IsStringInString($subject, $seek)
 {
     $temp = 0;
     $legthStringFirst = StringLength($subject);
     $legthStringSecond = StringLength($seek);
     for ($i = 0; $i <= $legthStringFirst - $legthStringSecond; $i++) {
         if ($subject[$i] == $seek[$temp]) {
             $new = Dziusio_substr_rev($subject, $legthStringFirst - 1 - $i);
             $new1 = Dziusio_substr($new, $legthStringSecond);
             if ($new1 == $seek) {
                 return true;
             }
         }
     }
     return false;
     //
 }
예제 #2
0
    } else {
        msgbox("Error", $lang_job['global_error']);
    }
}
if ($job->member['id']) {
    $tpl->result['content'] = preg_replace('#\\[not-logged\\](.*?)\\[/not-logged\\]#si', '', $tpl->result['content']);
    $tpl->result['content'] = preg_replace('#\\[logged\\](.*?)\\[/logged\\]#si', "\\1", $tpl->result['content']);
} else {
    $tpl->result['content'] = preg_replace('#\\[not-logged\\](.*?)\\[/not-logged\\]#si', "\\1", $tpl->result['content']);
    $tpl->result['content'] = preg_replace('#\\[logged\\](.*?)\\[/logged\\]#si', '', $tpl->result['content']);
}
$TitleSpeedBar = $template->TitleSpeedBar();
if (AJAX) {
    $s_navigation = str_replace(array("'", "&#039;"), array("&#039;", "&#039;"), "<a href=\"{$config['http_home_url']}\">" . $config['home_title'] . "</a> &raquo; " . $TitleSpeedBar['speedbar']);
    @header("Content-type: text/css; charset=" . $config['charset']);
    echo <<<JS
<script language='JavaScript' type="text/javascript">

\tif ( document.getElementById('dle-speedbar') )
\t{
\t   document.getElementById('dle-speedbar').innerHTML = '{$s_navigation}';
    }
</script>
JS;
    echo $tpl->result['content'];
    exit;
}
if ($job->config['general_debug'] && $dbase->query_list) {
    $tpl->result['content'] .= "<pre>" . StringLength(print_r($dbase->query_list, true)) . "</pre>";
}
include_once ENGINE_DIR . "/job/blocks.php";
예제 #3
0
    public function footer($footer = false, $year = '')
    {
        if (self::$Debug_info) {
            echo "<pre>";
            echo function_exists(StringLength) ? StringLength(print_r(self::$Debug_info, true)) : print_r(self::$Debug_info, true);
            echo "</pre>";
        }
        if ($year && $year < date('Y')) {
            $year = $year . " - ";
        } elseif ($this->year && $this->year < date('Y')) {
            $year = $this->year . " - ";
        }
        $cur_yaer = date('Y');
        $output = <<<HTML
\t\t<table width="100%">
\t\t    <tr>
\t\t        <td bgcolor="#EFEFEF" height="20" align="center" style="padding-right:10px;"><div class="navigation">Copyright © {$year}{$cur_yaer} <a href="http://www.kaliostro.net" style="text-decoration:underline;color:green">kaliostro</a></div></td>
\t\t    </tr>
\t\t</table>
HTML;
        if ($this->footer || $footer) {
            $this->show_return($output);
            echofooter();
        }
        exit;
    }