예제 #1
0
파일: index.php 프로젝트: shishenkov/zpanel
        <tr>
            <th><?php 
echo $lang['150'];
?>
:</th>
            <td><select name="inTiming" id="inTiming">
                    <option value="* * * * *">Every 1 minute</option>
                    <option value="0,5,10,15,20,25,30,35,40,45,50,55 * * * *">Every 5 minutes</option>
                    <option value="0,10,20,30,40,50 * * * *">Every 10 minutes</option>
                    <option value="0,30 * * * *">Every 30 minutes</option>
                    <option value="0 * * * *">Every 1 hour</option>
                    <option value="0 0,2,4,6,8,10,12,14,16,18,20,22 * * *">Every 2 hours</option>
                    <option value="0 0,8,16 * * *">Every 8 hours</option>
                    <option value="0 0,12 * * *">Every 12 hours</option>
                    <option value="0 0 * * *">Every 1 day</option>
                    <option value="0 0 * * 0">Every week</option>
                </select></td>
        </tr>
        <tr>
            <th colspan="2" align="right"><input type="hidden" name="inReturn" value="<?php 
echo GetFullURL();
?>
" />
                <input type="hidden" name="inAction" value="new" />
                <input type="submit" name="inSubmit" id="inSubmit" value="<?php 
echo $lang['128'];
?>
" /></th>
        </tr>
    </table>
</form>
예제 #2
0
<?php

if (isset($_GET['error'])) {
    die("Please use get.php");
}
$noAutoHeader = TRUE;
$noViewCount = TRUE;
$noOnlineUsers = TRUE;
$noFooter = TRUE;
$ajax = TRUE;
include "lib/common.php";
$full = GetFullURL();
$here = substr($full, 0, strrpos($full, "/")) . "/";
if (isset($_GET['id'])) {
    $entry = Query("select * from uploader where id = " . (int) $_GET['id']);
} else {
    if (isset($_GET['file'])) {
        $entry = Query("select * from uploader where filename = '" . justEscape($_GET['file']) . "'");
    } else {
        die("Nothing specified.");
    }
}
if (NumRows($entry)) {
    $entry = Fetch($entry);
    if ($entry['private']) {
        $path = "uploader/" . $entry['user'] . "/" . $entry['filename'];
    } else {
        $path = "uploader/" . $entry['filename'];
    }
    if (!file_exists($path)) {
        die("No such file.");
예제 #3
0
function Report($stuff, $hidden = 0, $severity = 0)
{
    $full = GetFullURL();
    $here = substr($full, 0, strrpos($full, "/")) . "/";
    /*if ($severity == 2)
    		$req = base64_encode(serialize($_REQUEST));
    	else*/
    $req = 'NULL';
    Query("insert into {reports} (ip,user,time,text,hidden,severity,request)\n\t\tvalues ({0}, {1}, {2}, {3}, {4}, {5}, {6})", $_SERVER['REMOTE_ADDR'], (int) $loguserid, time(), str_replace("#HERE#", $here, $stuff), $hidden, $severity, $req);
    Query("delete from {reports} where time < {0}", time() - 60 * 60 * 24 * 30);
}
예제 #4
0
파일: index.php 프로젝트: shishenkov/zpanel
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
include 'conf/zcnf.php';
include 'lang/' . GetPrefdLang($personalinfo['ap_language_vc']) . '.php';
include 'inc/zAccountDetails.php';
# Set the default infomation submitted in the bug form
$returnurl = GetFullURL() . "&ok";
$zpanelurl = $_SERVER['SERVER_NAME'];
$serversoft = $_SERVER['SERVER_SOFTWARE'];
$phpversion = ShowPHPVersion();
$mysqlversion = ShowMySQLVersion();
$apacheversion = ShowApacheVersion();
$zpanelversion = GetSystemOption('zpanel_version');
echo $lang['55'];
if (isset($_GET['r']) && $_GET['r'] == 'ok') {
    echo $lang['60'];
}
echo "<br><br>";
?>
<form name="frmReport" id="frmReport" target="_blank" method="post" action="http://api.zpanelcp.com/api/bugapi.php?secure=<?php 
echo base64_encode("" . $returnurl . "|||" . $zpanelurl . "|||" . $serversoft . "|||" . $apacheversion . "|||" . $phpversion . "|||" . $mysqlversion . "|||" . $zpanelversion . "");
?>
예제 #5
0
파일: index.php 프로젝트: shishenkov/zpanel
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
include 'inc/zAccountDetails.php';
include 'lang/' . GetPrefdLang($personalinfo['ap_language_vc']) . '.php';
echo $lang['19'];
echo "<br><br>";
if (isset($_GET['r']) && $_GET['r'] == 'ok') {
    echo "<br><br><div class=\"zannouce\">" . $lang['21'] . "</div>";
    echo "<br><br>";
}
if (isset($_GET['r']) && $_GET['r'] == 'ok-both') {
    echo "<br><br><div class=\"zannouce\">" . $lang['20'] . "</div>";
    echo "<br><br>";
}
if (isset($_GET['r']) && $_GET['r'] == 'error') {
    echo "<br><br><div class=\"zannouce\">" . $lang['22'] . "</div>";
    echo "<br><br>";
}
echo "<form id=\"frmPasswordAssistant\" name=\"frmPasswordAssistant\" method=\"post\" action=\"runner.php?load=obj_resetpassword\">\r\n<table class=\"zform\">\r\n<tr>\r\n<th>" . $lang['23'] . "</th>\r\n<td><input name=\"inCurPass\" type=\"password\" id=\"inCurPass\" /></td>\r\n</tr>\r\n<tr>\r\n<th>" . $lang['24'] . "</th>\r\n<td><input name=\"inNewPass\" type=\"password\" id=\"inNewPass\" /></td>\r\n</tr>\r\n<tr>\r\n<th>" . $lang['25'] . "</th>\r\n<td><input name=\"inConPass\" type=\"password\" id=\"inConPass\" /></td>\r\n</tr>\r\n<tr>\r\n<th>" . $lang['26'] . "</th>\r\n<td><input name=\"inResMySQL\" type=\"checkbox\" id=\"inResMySQL\" value=\"1\" /></td>\r\n</tr>\r\n<tr>\r\n<td>&nbsp;</td>\r\n<td align=\"right\"><input type=\"hidden\" name=\"inReturnURL\" id=\"inReturnURL\" value=\"" . GetFullURL() . "\" /><input name=\"Submit\" type=\"submit\" id=\"Submit\" value=\"Change\" /></td>\r\n</tr>\r\n</table>\r\n</form>";
예제 #6
0
function Report($stuff, $hidden = 0, $severity = 0)
{
    //$here = "http://helmet.kafuka.org/nikoboard";
    $full = GetFullURL();
    $here = substr($full, 0, strrpos($full, "/")) . "/";
    if ($severity == 2) {
        $req = "'" . justEscape(base64_encode(serialize($_REQUEST))) . "'";
    } else {
        $req = 'NULL';
    }
    Query("insert into reports (ip,user,time,text,hidden,severity,request) \n\t\tvalues ('" . $_SERVER['REMOTE_ADDR'] . "', " . (int) $loguserid . ", " . time() . ", '" . justEscape(str_replace("#HERE#", $here, $stuff)) . "', " . $hidden . ", " . $severity . ", " . $req . ")");
    Query("delete from reports where time < " . (time() - 60 * 60 * 24 * 30));
}
예제 #7
0
파일: index.php 프로젝트: shishenkov/zpanel
 */
include 'conf/zcnf.php';
include 'lang/' . GetPrefdLang($personalinfo['ap_language_vc']) . '.php';
include 'inc/zAccountDetails.php';
$sql = "SELECT * FROM z_vhosts WHERE vh_acc_fk=" . $useraccount['ac_id_pk'] . " AND vh_deleted_ts IS NULL";
$listdomains = DataExchange("r", $z_db_name, $sql);
$rowdomains = mysql_fetch_assoc($listdomains);
$totaldomains = DataExchange("t", $z_db_name, $sql);
if (isset($_GET['a'])) {
    if ($_GET['a'] == 'show') {
        $report_to_show1 = GetSystemOption('webalizer_sd') . $useraccount['ac_user_vc'] . "/" . $_POST['inDomain'] . "/index.html";
        if (!file_exists($report_to_show1)) {
            $report_to_show = "static/nowebstats/index.html";
        } else {
            $report_to_show = GetSystemOption('webalizer_sd') . $useraccount['ac_user_vc'] . "/" . $_POST['inDomain'] . "/index.html";
        }
    }
}
echo "" . $lang['27'] . "<br><br><h2>" . $lang['29'] . "</h2>";
if ($totaldomains > 0) {
    echo "<form action=\"" . GetNormalModuleURL(GetFullURL()) . "&a=show\" method=\"post\" name=\"frmStats\" id=\"frmStats\">\r\n<table class=\"zform\">\r\n<tr>\r\n<td><strong>" . $lang['28'] . "</strong></td>\r\n<td><select name=\"inDomain\" id=\"inDomain\">\r\n<option value=\"\">-- " . $lang['29'] . " --</option>";
    do {
        echo "<option value=\"" . $rowdomains['vh_name_vc'] . "\">" . $rowdomains['vh_name_vc'] . "</option>";
    } while ($rowdomains = mysql_fetch_assoc($listdomains));
    echo "</select></td>\r\n<td><input type=\"submit\" name=\"Submit\" value=\"" . $lang['30'] . "\"></td>\r\n</tr>\r\n</table>\r\n</form>";
    if (isset($_GET['a']) && $_GET['a'] == "show") {
        echo "<br><h2>" . $lang['31'] . "</h2><iframe height=\"400\" width=\"100%\" allowtransparency=\"\" src=\"" . $report_to_show . "\" title=\"" . $lang['31'] . "\" frameborder=\"0\" scrolling=\"auto\"></iframe>";
    }
} else {
    echo $lang['32'];
}
예제 #8
0
파일: search.php 프로젝트: knytrune/ABXD
<?php

$title = __("Search");
$crumbs = new PipeMenu();
$crumbs->add(new PipeMenuLinkEntry(__("Search"), "search"));
makeBreadcrumbs($crumbs);
if (isset($_POST['google'])) {
    $here = GetFullURL();
    $here = substr($here, 0, strrpos($here, "/"));
    if ($urlRewriting) {
        //hack
        $here = substr($here, 0, strrpos($here, "/"));
    }
    header("Location: http://www.google.com/search?q=" . urlencode($_POST['google'] . " site:" . $here));
}
AssertForbidden("search");
echo "\t<table>\n\t\t<tr>\n\t\t\t<td style=\"width: 70%; border: 0px none; vertical-align: top; padding-right: 1em; padding-bottom: 1em;\">";
echo "\n\t<form name=\"searchform\"  action=\"" . actionLink("search") . "\" method=\"post\">\n\t\t<table class=\"outline margin\">\n\t\t\t<tr class=\"header0\"><th>\n\t\t\t\t<strong>" . __("Google search") . "</strong>\n\t\t\t</th></tr>\n\t\t\t<tr><td class=\"cell0\">\n\t\t\t\t<input type=\"text\" maxlength=\"1024\" name=\"google\" style=\"width: 80%;\" />\n\t\t\t\t&nbsp;\n\t\t\t\t<input type=\"submit\" value=\"" . __("Search") . "\" />\n\t\t\t</td></tr>\n\t\t</table>\n\t</form>\n\t<script type=\"text/javascript\">\n\t\tdocument.searchform.google.focus();\n\t</script>\n";
if ($loguser['powerlevel'] >= 1) {
    echo "\n\t\t<form action=\"" . actionLink("search") . "\" method=\"post\">\n\t\t\t<table class=\"outline margin\">\n\t\t\t\t<tr class=\"header0\"><th>\n\t\t\t\t\t<strong>" . __("Internal search") . "</strong>\n\t\t\t\t</th></tr>\n\t\t\t\t<tr><td class=\"cell0\">\n\t\t\t\t\t<input type=\"text\" maxlength=\"1024\" name=\"q\" style=\"width: 80%;\" value=\"" . htmlspecialchars($_POST['q']) . "\">\n\t\t\t\t\t&nbsp;\n\t\t\t\t\t<input type=\"submit\" value=\"" . __("Search") . "\">\n\t\t\t\t</td></tr>\n\t\t\t</table>\n\t\t</form>\n\t";
    echo "\t</td>\n\t\t\t<td style=\"border: 0px none; vertical-align: top; padding-right: 1em; padding-bottom: 1em;\">";
    echo "\n\t\t\t<table class=\"outline margin\">\n\t\t\t\t<tr class=\"header0\"><th>\n\t\t\t\t\t" . __("Search help") . "\n\t\t\t\t</th></tr>\n\t\t\t\t<tr><td class=\"cell0\">\n\t\t\t\t\t" . __("Internal search checks both thread titles and post text, returning results from both.") . "\n\t\t\t\t\t<dl>\n\t\t\t\t\t\t<dt><samp>foo bar</samp></dt>\n\t\t\t\t\t\t<dd>" . __("Find entries with either term") . "</dd>\n\t\t\t\t\t\t<dt><samp>\"foo bar\"</samp></dt>\n\t\t\t\t\t\t<dd>" . __("Find entries with full phrase") . "</dd>\n\t\t\t\t\t\t<dt><samp>+foo -bar</samp></dt>\n\t\t\t\t\t\t<dd>" . __("Find entries with <var>foo</var> but not <var>bar</var>") . "</dd>\n\t\t\t\t\t</dl>\n\t\t\t\t</td></tr>\n\t\t\t</table>";
}
echo "</td></tr></table>";
if ($loguser['powerlevel'] < 1) {
    throw new KillException();
}
if (isset($_POST['q'])) {
    $searchQuery = $_POST["q"];
    $totalResults = 0;
    $bool = htmlspecialchars($searchQuery);
예제 #9
0
파일: index.php 프로젝트: shishenkov/zpanel
                        <input type="submit" name="inSubmit" id="inSubmit" value="<?php 
        echo $lang['128'];
        ?>
" /></th>
                </tr>
            </table>
        </form><?php 
    } else {
        echo $lang['234'];
    }
}
# Check the see if the user wants to edit the dist list in queston...
if (isset($_GET['edit'])) {
    # Get a list of the dist list users....
    $sql = "SELECT * FROM z_distlists WHERE dl_acc_fk=" . $useraccount['ac_id_pk'] . " AND dl_address_vc='" . Cleaner('i', $_GET['edit']) . "' AND dl_deleted_ts IS NULL";
    $listdistlist = DataExchange("r", $z_db_name, $sql);
    $rowdistlist = mysql_fetch_assoc($listdistlist);
    $totaldistlist = DataExchange("t", $z_db_name, $sql);
    $sql = "SELECT * FROM z_distlistusers WHERE du_distlist_fk=" . $rowdistlist['dl_id_pk'] . " AND du_deleted_ts IS NULL";
    $listdistlistusers = DataExchange("r", $z_db_name, $sql);
    $rowdistlistusers = mysql_fetch_assoc($listdistlistusers);
    $totaldistlistusers = DataExchange("t", $z_db_name, $sql);
    echo "<br><h2>Edit distrubution list</h2>";
    echo "<form id=\"frmNewDistListUser\" name=\"frmNewDistListUser\" method=\"post\" action=\"runner.php?load=obj_mail\">\r\n\t<table class=\"zform\">\r\n\t<tr>\r\n    <th colspan=\"3\">" . $rowdistlist['dl_address_vc'] . "</th>\r\n  \t</tr>\r\n\t  <tr>\r\n    <th>&nbsp;</th>\r\n    <td>&nbsp;</td>\r\n\t<td>&nbsp;</td>\r\n  </tr>";
    if ($rowdistlistusers > 0) {
        do {
            echo "<tr>\r\n    <th>Email Address:</th><td>" . $rowdistlistusers['du_address_vc'] . "</td>\r\n    <td><input type=\"submit\" name=\"inDelete_" . $rowdistlistusers['du_id_pk'] . "\" id=\"inDelete_" . $rowforwarders['du_id_pk'] . "\" value=\"" . $lang['84'] . "\" /></td>\r\n  </tr>";
        } while ($rowdistlistusers = mysql_fetch_assoc($listdistlistusers));
    }
    echo "\r\n  <tr>\r\n    <th>&nbsp;</th>\r\n    <td>&nbsp;</td>\r\n\t<td>&nbsp;</td>\r\n  </tr>\r\n  <tr>\r\n    <th>Add new address:</th>\r\n    <td><input type=\"text\" name=\"inDistListAddress\" id=\"inDistListAddress\" /></td><td>&nbsp;</td>\r\n  </tr>\r\n  <tr>\r\n    <th colspan=\"3\" align=\"right\"><input type=\"hidden\" name=\"inReturn\" value=\"" . GetFullURL() . "\" />\r\n          <input type=\"hidden\" name=\"inAction\" value=\"edit_distlists\" />\r\n\t\t  <input type=\"hidden\" name=\"inDLID\" value=\"" . $rowdistlist['dl_id_pk'] . "\" />\r\n          <input type=\"submit\" name=\"inSubmit\" id=\"inSubmit\" value=\"" . $lang['128'] . "\" /></th>\r\n  </tr>\r\n</table>";
}
예제 #10
0
파일: index.php 프로젝트: shishenkov/zpanel
 *
 */
include 'inc/zAccountDetails.php';
include 'lang/' . GetPrefdLang($personalinfo['ap_language_vc']) . '.php';
echo $lang['2'];
echo "<br><br>";
if (isset($_GET['r']) && $_GET['r'] == 'ok') {
    echo "<br><br><div class=\"zannouce\">" . $lang['61'] . "</div>";
    echo "<br><br>";
}
echo "<form id=\"frmPersonalDetails\" name=\"frmPersonalDetails\" method=\"post\" action=\"runner.php?load=obj_personal\">\r\n  <table class=\"zform\">\r\n    <tr>\r\n      <th>" . $lang['13'] . "</th>\r\n      <td><input name=\"inFullname\" type=\"text\" id=\"inFullname\" size=\"40\" value=\"" . Cleaner("o", $personalinfo['ap_fullname_vc']) . "\" /></td>\r\n    </tr>\r\n    <tr>\r\n      <th>" . $lang['14'] . "</th>\r\n      <td><input name=\"inEmail\" type=\"text\" id=\"inEmail\" size=\"40\" value=\"" . Cleaner("o", $personalinfo['ap_email_vc']) . "\" /></td>\r\n    </tr>\r\n    <tr>\r\n      <th>" . $lang['17'] . "</th>\r\n      <td><input name=\"inPhone\" type=\"text\" id=\"inPhone\" size=\"20\" value=\"" . Cleaner("o", $personalinfo['ap_phone_vc']) . "\" /></td>\r\n    </tr>\r\n    <tr>\r\n      <th>Choose Language</th>\r\n      <td>";
echo "<select name=\"inTranslation\" id=\"inTranslation\">";
$handle = @opendir(GetSystemOption('zpanel_root') . "lang");
$chkdir = GetSystemOption('zpanel_root') . "lang/";
if (!$handle) {
    # Log an error as the folder cannot be opened...
    TriggerLog($useraccount['ac_id_pk'], $b = "Was unable to read the Language packs in (" . $chkdir . "), please ensure this folder exists.");
} else {
    while ($file = readdir($handle)) {
        if ($file != "." && $file != ".." && strstr($file, '.php') && !strstr($file, '_override')) {
            if (str_replace(".php", "", $file) == $personalinfo['ap_language_vc']) {
                echo "<option value=" . str_replace(".php", "", $file) . " selected=selected>" . str_replace(".php", "", $file) . "</option>\n";
            } else {
                echo "<option value=" . str_replace(".php", "", $file) . ">" . str_replace(".php", "", $file) . "</option>\n";
            }
        }
    }
    closedir($handle);
}
echo "</select>\r\n\t  \r\n\t  </td>\r\n    </tr>\r\n    <tr>\r\n      <th>" . $lang['15'] . "</th>\r\n      <td><textarea name=\"inAddress\" id=\"inAddress\" cols=\"45\" rows=\"5\">" . Cleaner("o", $personalinfo['ap_address_tx']) . "</textarea></td>\r\n    </tr>\r\n    <tr>\r\n      <th>" . $lang['16'] . "</th>\r\n      <td><input name=\"inPostalCode\" type=\"text\" id=\"inPostalCode\" size=\"15\" value=\"" . Cleaner("o", $personalinfo['ap_postcode_vc']) . "\" /></td>\r\n    </tr>\r\n    <tr>\r\n      <th>&nbsp;</th>\r\n      <td align=\"right\"><input type=\"hidden\" name=\"inReturnURL\" id=\"inReturnURL\" value=\"" . GetFullURL() . "\" /><input type=\"submit\" name=\"" . $lang['18'] . "\" id=\"" . $lang['18'] . "\" value=\"Submit\" /></td>\r\n    </tr>\r\n  </table>\r\n</form>";