// the terms of any one of the MPL, the GPL or the LGPL.
//
// ***** END LICENSE BLOCK *****
require "../core/config.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">

<head>
<?php 
//Bookmarking-Friendly Page Title
$id = escape_string($_GET["id"]);
$sql = "SELECT  UserName \n        FROM `userprofiles`  \n        WHERE UserID = '{$id}' \n        LIMIT 1";
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error " . mysql_errno() . ": " . mysql_error() . "", E_USER_NOTICE);
if (mysql_num_rows($sql_result) === 0) {
    $return = page_error("2", "Author ID is Invalid or Missing.");
    exit;
}
$row = mysql_fetch_array($sql_result);
?>

    <TITLE>Mozilla Update :: Extensions - Author Profile: <?php 
echo "{$row['UserName']}";
?>
</TITLE>


<?php 
include "{$page_header}";
?>
Esempio n. 2
0
         } else {
             $user_success++;
         }
     }
     if ($err_msg) {
         $error .= '<br /><br /><span class="err_msg">These users were not copied: ' . $err_msg . '.</span><br /><br />Those users may already exist in the table or the copy may have simply failed. In the latter case, you may need to add the users manually. To do this, you will need to run the SQL queries below through phpMyAdmin or a similar utility. If you do not have such a utility, try going to the Utilities section of phpBBHacks.com and check out the db_generator page there.<br /><br /><span class="query_msg">';
         //foreach($err_ids as $id)
         //{
         //  $message .= 'INSERT INTO ' . $table_prefix . 'im_prefs (user_id, themes_id) VALUES (' . $id . ', ' . $board_config['default_style'] . ');<br />';
         //}
         $error .= '</span>';
     }
     // Prillian - END
     if ($error != '') {
         page_header($lang['Install'], '');
         page_error($lang['Installer_Error'], $lang['Install_db_error'] . '<br /><br />' . $error);
         page_footer();
         exit;
     }
 }
 if (!$upgrade_now) {
     // Write out the config file.
     $config_data = '<?php' . "\n\n";
     $config_data .= "\n// Minerva R3 auto-generated config file\n// Do not change anything in this file!\n\n";
     $config_data .= '$dbms = \'' . $dbms . '\';' . "\n\n";
     $config_data .= '$dbhost = \'' . $dbhost . '\';' . "\n";
     $config_data .= '$dbname = \'' . $dbname . '\';' . "\n";
     $config_data .= '$dbuser = \'' . $dbuser . '\';' . "\n";
     $config_data .= '$dbpasswd = \'' . $dbpasswd . '\';' . "\n\n";
     $config_data .= '$table_prefix = \'' . $table_prefix . '\';' . "\n\n";
     $config_data .= '$acm_type = \'file\';' . "\n\n";
Esempio n. 3
0
 /**
  * Сюда постится форма с CopyDlg() и тут все происходит
  * @return mixed
  */
 function EditProcCopy()
 {
     @ignore_user_abort();
     $trg = (int) $_GET['trg'] ? (int) $_GET['trg'] : domainRootID();
     $src = (int) $_GET['src'] ? (int) $_GET['src'] : domainRootID();
     if ($src && $src == $trg && isset($_GET['move'])) {
         page_error($this->str('e_move_to_same'));
         return;
     }
     if (isset($_GET['move']) && $src) {
         # перемещение раздела
         $this->MoveTree($src, $trg);
         $this->Validate(0, '', 0, array());
     } elseif (isset($_GET['copy']) && $src) {
         # копирование (каскадное)
         $this->CopyTree($src, $trg);
         $this->Validate(0, '', 0, array());
     } else {
         page_error($this->str('e_unknown'));
         return;
     }
     echo "\n\t\tDone. Closing window...\n\t\t<script type='text/javascript'>\n\t\tif (opener) opener.location.href = '/admin/?page=" . $this->name . "&id=" . $trg . "';\n\t\twindow.close();\n\t\t</script>\n\t\t";
 }
//Check and see if the CommentID/ID is valid.
$sql = "SELECT `ID`, `CommentID` \n        FROM `feedback` \n        WHERE `ID` = '" . escape_string($_GET[id]) . "' \n          AND `CommentID`='" . escape_string($_GET["commentid"]) . "' \n        LIMIT 1";
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error " . mysql_errno() . ": " . mysql_error() . "", E_USER_ERROR);
if (mysql_num_rows($sql_result) == "0") {
    unset($_GET["id"], $_GET["commentid"], $id, $commentid);
} else {
    $id = escape_string($_GET["id"]);
    $commentid = escape_string($_GET["commentid"]);
}
//Make Sure action is as expected.
if ($_GET["action"] == "report") {
    $action = "yes";
}
if (!$commentid or !$action) {
    //No CommentID / Invalid Action --> Error.
    page_error("4", "No Comment ID or Action is Invalid");
    exit;
}
//Set Flag on the Comment Record
$sql = "UPDATE `feedback` \n        SET `flag`='YES' \n        WHERE `CommentID`='{$commentid}' \n        LIMIT 1";
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error " . mysql_errno() . ": " . mysql_error() . "", E_USER_NOTICE);
if ($_GET["type"] == "E") {
    $type = "extensions";
} else {
    if ($_GET["type"] == "T") {
        $type = "themes";
    }
}
$return_path = "{$type}/moreinfo.php?id={$id}&vid={$vid}&" . uriparams() . "&page=comments&pageid={$_GET['pageid']}#{$commentid}";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
Esempio n. 5
0
// the terms of any one of the MPL, the GPL or the LGPL.
//
// ***** END LICENSE BLOCK *****
require "../core/config.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">

<head>
<?php 
//Bookmarking-Friendly Page Title
$id = escape_string($_GET["id"]);
$sql = "SELECT  Name FROM `main`  WHERE ID = '{$id}' AND Type = 'E' LIMIT 1";
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error " . mysql_errno() . ": " . mysql_error() . "", E_USER_NOTICE);
if (mysql_num_rows($sql_result) === 0) {
    $return = page_error("1", "Extension ID is Invalid or Missing.");
    exit;
}
$row = mysql_fetch_array($sql_result);
//Page Titles
$pagetitles = array("releases" => "All Releases", "previews" => "Preview Images", "comments" => "User Comments", "staffreview" => "Editor Review", "opinion" => " My Opinion");
$pagetitle = $pagetitles[$_GET["page"]];
?>

    <title>Mozilla Update :: Extensions -- More Info: <?php 
echo "{$row['Name']}";
if ($pagetitle) {
    echo " - {$pagetitle}";
}
?>
</title>
$comments = nl2br(strip_tags(escape_string($_POST["comments"])));
$email = escape_string($_POST["email"]);
if (!$name) {
    $name = "Anonymous";
}
if (!$title) {
    $title = "No Title";
}
//Make Sure Rating is as expected.
if (is_numeric($rating) and $rating <= 5 and $rating >= 0) {
} else {
    unset($rating);
}
if (!$rating or !$comments) {
    //No Rating or Comment Defined, throw an error.
    page_error("3", "Comment is Blank or Rating is Null.");
    exit;
}
//Compile Info about What Version of the item this comment is about.
$sql = "SELECT TV.Version, `OSName`, `AppName` FROM `version` TV\n        INNER JOIN `os` TOS ON TOS.OSID=TV.OSID\n        INNER JOIN `applications` TA ON TA.AppID=TV.AppID\n        WHERE TV.ID = '{$id}' AND TV.vID='{$vid}' LIMIT 1";
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error " . mysql_errno() . ": " . mysql_error() . "", E_USER_ERROR);
$row = mysql_fetch_array($sql_result);
$version = $row["Version"];
$os = $row["OSName"];
$appname = $row["AppName"];
$versiontagline = "version {$version} for {$appname}";
if ($os !== "ALL") {
    $versiontagline .= " on {$os}";
}
//Are we behind a proxy and given the IP via an alternate enviroment variable? If so, use it.
if ($_SERVER["HTTP_X_FORWARDED_FOR"]) {
Esempio n. 7
0
// the terms of any one of the MPL, the GPL or the LGPL.
//
// ***** END LICENSE BLOCK *****
require "../core/config.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">

<head>
<?php 
//Bookmarking-Friendly Page Title
$id = escape_string($_GET["id"]);
$sql = "SELECT  Name FROM `main`  WHERE ID = '{$id}' AND Type = 'T' LIMIT 1";
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error " . mysql_errno() . ": " . mysql_error() . "", E_USER_NOTICE);
if (mysql_num_rows($sql_result) === 0) {
    $return = page_error("1", "Theme ID is Invalid or Missing.");
    exit;
}
$row = mysql_fetch_array($sql_result);
//Page Titles
$pagetitles = array("releases" => "All Releases", "previews" => "Preview Images", "comments" => "User Comments", "staffreview" => "Editor Review", "opinion" => " My Opinion");
$pagetitle = $pagetitles[$_GET["page"]];
?>

    <title>Mozilla Update :: Themes -- More Info: <?php 
echo "{$row['Name']}";
if ($pagetitle) {
    echo " - {$pagetitle}";
}
?>
</title>