コード例 #1
0
ファイル: link.php プロジェクト: dapfru/gladiators
function if_mysql_error()
{
    global $lang_idgoerr;
    if (mysql_error()) {
        place_header();
        echo $lang_idgoerr . " '{$id}'.<br>";
        echo mysql_error();
        place_footer();
        die("");
    }
}
コード例 #2
0
ファイル: index.php プロジェクト: joadelvia/intranet
     include "../menu.php";
     show_contents();
     include "../pie.php";
     break;
 }
 if (is_dir("{$current_dir}/{$filename}")) {
     if (eregi($hidden_dirs, $userfile) && !$showhidden) {
         place_header($mess[206]);
         include "../menu.php";
         show_contents();
         include "../pie.php";
         break;
     }
 }
 if (!is_path_safe($directory, $filename) || !is_path_safe($directory, $userfile)) {
     place_header($mess[201]);
     include "../menu.php";
     show_contents();
     include "../pie.php";
     break;
 }
 list($upl_user, $upl_ip, $contents) = get_file_description("{$current_dir}/{$filename}", $comment_max_caracters);
 if ($grants[$user_status][MODALL] || $upl_user == $logged_user_name && $grants[$user_status][MODOWN]) {
     if (!eregi($rejectedfiles, $userfile)) {
         if (!file_exists("{$current_dir}/{$userfile}") || $filename == $userfile) {
             if ($filename != $userfile) {
                 if (file_exists("{$current_dir}/{$filename}")) {
                     if (!is_dir("{$current_dir}/{$filename}")) {
                         $filetype = end(explode(".", $filename));
                         $userfile2 = str_replace('.' . $filetype, '', $userfile);
                         rename("{$current_dir}/{$filename}", "{$current_dir}/{$userfile2}.{$filetype}");
コード例 #3
0
ファイル: index.php プロジェクト: dapfru/gladiators
<?php

############################################################################
# WFSearch Engine Pro by jID     Version 1.0 (PHP4)                        #
# Copyright (C) jID, 2003                                                  #
#                                                                          #
# search form :: форма для поиска                                          #
############################################################################
require "connect.php";
require "lang.php";
require "include/header.php";
require "include/footer.php";
session_start();
place_header($lang_srchtitle);
?>
  <form method=post action=wfsearchpro.php>
  <input name=query length=40><input type=submit value='<?php 
echo $lang_search;
?>
'><br>
  <input type=radio checked name=m value=or><?php 
echo $lang_usingor;
?>
<br>
  <input type=radio name=m value=and><?php 
echo $lang_usingand;
?>
  </input>
  </form>
<?php 
place_footer();