Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter mstamper

    (@mstamper)

    i have edited the style sheet to change the bg color. yet in ie6 sp2 it does not show. it does show up in ie5.5.
    someone earlier said that they did not see the change either. i do not know what browser they are using.
    how can i make sure this change will take place when viewed in ie6, 5.5, ff?
    i have looked for some sort of notation in the index.php for the site yet i do not see one. when i right click and look at the source code in note pad i see a comment for a white bg color, i think that color is in the text boxes, i am not 100% sure.
    i do not see any sort of direct html page or coding to change.
    please help
    thanks
    mark

    Thread Starter mstamper

    (@mstamper)

    do you think changing those boxes to a shade of lighter blue or maybe a shade of gray would work color wise?
    if so what hex colors would you suggest?
    thanks again
    mark

    Thread Starter mstamper

    (@mstamper)

    thanks
    i am not sure where the style sheet went but it was no where to be found.
    i moved one over from one of my other blogs.
    thanks
    mark

    Thread Starter mstamper

    (@mstamper)

    update……
    i had deleted the opening “hello world” post and had not input any other posts.
    i added a quick post to the general catagory and it fixed the error.
    i am still interested in why and how just adding a post fixed this warning message.
    thanks
    mark

    Thread Starter mstamper

    (@mstamper)

    i reloaded several files in the includes and all is fixed now. you can see my blog at https://www.homebuilderssc.com/blog
    thanks
    mark

    Thread Starter mstamper

    (@mstamper)

    another item of note… when i click on links in the posting page i get the following error as well
    Parse error: parse error, unexpected $ in /home/mstamper/public_html/blog/wp-admin/link-manager.php on line 488
    any ideas on that. did i not upload all the files i needed. i thought i got them all.
    later
    mark

    Thread Starter mstamper

    (@mstamper)

    no i am being served on a
    linux version 2.4.26-hn-1.6-p4
    run on an apache (unix) version 1.3.31
    the mysql version is 4.0.20-standard
    the php version is 4.3.8

    Thread Starter mstamper

    (@mstamper)

    new issue….. this is what i get after i post and then click on view site
    7/27/2004
    first blog post
    Filed under:
    Fatal error: Call to undefined function: the_category() in /home/mstamper/public_html/blog/index.php on line 40
    is there something else i need to check now?
    mark

    Thread Starter mstamper

    (@mstamper)

    i went into the cpanel editor and rechecked the end of the config file. there were 3 whitespaces. i deleted them and tried to login again…..SUCCESS!
    thanks everyone. i am a greatful newbie.
    later
    mark

    Thread Starter mstamper

    (@mstamper)

    okay, here is what i have done….
    wordpad wants to save the config file as wp-config.php.txt , i upload that file and then rename it as wp-config.php. i have done that 3 times.
    i have deleted the wp-login.php file and uploaded it 2 times, the second time i did as you asked and checked for the whitespace issue.
    i continue to get the error of Warning: Cannot modify header information – headers already sent by (output started at /home/mstamper/public_html/blog/wp-config.php:34) in /home/mstamper/public_html/blog/wp-login.php on line 123
    i also get this on lines 124, 126, 127, 128, 129, and 149.
    crazy huh?
    thanks
    mark

    Thread Starter mstamper

    (@mstamper)

    i read the faq and since i do not know heads or tails about php code i am including the contents of the wp-login.php file below. please show me what to edit and i will take care of it.
    would it be easier to just dump the whole file set and start over?
    thanks
    mark
    ———————————————————————————————-
    <?php
    require(dirname(__FILE__) . ‘/wp-config.php’);
    if (!function_exists(‘add_magic_quotes’)) {
    function add_magic_quotes($array) {
    foreach ($array as $k => $v) {
    if (is_array($v)) {
    $array[$k] = add_magic_quotes($v);
    } else {
    $array[$k] = addslashes($v);
    }
    }
    return $array;
    }
    }
    if (!get_magic_quotes_gpc()) {
    $_GET = add_magic_quotes($_GET);
    $_POST = add_magic_quotes($_POST);
    $_COOKIE = add_magic_quotes($_COOKIE);
    }
    $wpvarstoreset = array(‘action’,’mode’,’error’,’text’,’popupurl’,’popuptitle’);
    for ($i = 0; $i < count($wpvarstoreset); $i = $i + 1) {
    $wpvar = $wpvarstoreset[$i];
    if (!isset($$wpvar)) {
    if (empty($_POST[“$wpvar”])) {
    if (empty($_GET[“$wpvar”])) {
    $$wpvar = ”;
    } else {
    $$wpvar = $_GET[“$wpvar”];
    }
    } else {
    $$wpvar = $_POST[“$wpvar”];
    }
    }
    }
    switch($action) {
    case ‘logout’:
    setcookie(‘wordpressuser_’.$cookiehash, ” “, time() – 31536000, COOKIEPATH);
    setcookie(‘wordpresspass_’.$cookiehash, ” “, time() – 31536000, COOKIEPATH);
    header(‘Expires: Wed, 11 Jan 1984 05:00:00 GMT’);
    header(‘Last-Modified: ‘ . gmdate(‘D, d M Y H:i:s’) . ‘ GMT’);
    header(‘Cache-Control: no-cache, must-revalidate’);
    header(‘Pragma: no-cache’);
    if ($is_IIS) {
    header(‘Refresh: 0;url=wp-login.php’);
    } else {
    header(‘Location: wp-login.php’);
    }
    exit();
    break;
    case ‘login’:
    if(!empty($_POST)) {
    $log = $_POST[‘log’];
    $pwd = $_POST[‘pwd’];
    $redirect_to = $_POST[‘redirect_to’];
    }
    $user = get_userdatabylogin($log);
    if (0 == $user->user_level) {
    $redirect_to = get_settings(‘siteurl’) . ‘/wp-admin/profile.php’;
    }
    function login() {
    global $wpdb, $log, $pwd, $error, $user_ID;
    global $tableusers, $pass_is_md5;
    $user_login = &$log;
    $pwd = md5($pwd);
    $password = &$pwd;
    if (!$user_login) {
    $error = __(‘Error: the login field is empty.’);
    return false;
    }
    if (!$password) {
    $error = __(‘Error: the password field is empty.’);
    return false;
    }
    $query = “SELECT ID, user_login, user_pass FROM $tableusers WHERE user_login = ‘$user_login’ AND user_pass = ‘$password'”;
    $login = $wpdb->get_row($query);
    if (!$login) {
    $error = __(‘Error: wrong login or password.’);
    $pwd = ”;
    return false;
    } else {
    $user_ID = $login->ID;
    if (($pass_is_md5 == 0 && $login->user_login == $user_login && $login->user_pass == $password) || ($pass_is_md5 == 1 && $login->user_login == $user_login && $login->user_pass == md5($password))) {
    return true;
    } else {
    $error = __(‘Error: wrong login or password.’);
    $pwd = ”;
    return false;
    }
    }
    }
    if (!login()) {
    header(‘Expires: Wed, 11 Jan 1984 05:00:00 GMT’);
    header(‘Last-Modified: ‘ . gmdate(‘D, d M Y H:i:s’) . ‘ GMT’);
    header(‘Cache-Control: no-cache, must-revalidate’);
    header(‘Pragma: no-cache’);
    if ($is_IIS) {
    header(‘Refresh: 0;url=wp-login.php’);
    } else {
    header(‘Location: wp-login.php’);
    }
    exit();
    } else {
    $user_login = $log;
    $user_pass = $pwd;
    setcookie(‘wordpressuser_’.$cookiehash, $user_login, time() + 31536000, COOKIEPATH);
    setcookie(‘wordpresspass_’.$cookiehash, md5($user_pass), time() + 31536000, COOKIEPATH);
    header(‘Expires: Wed, 11 Jan 1984 05:00:00 GMT’);
    header(‘Last-Modified: ‘ . gmdate(‘D, d M Y H:i:s’) . ‘ GMT’);
    header(‘Cache-Control: no-cache, must-revalidate’);
    header(‘Pragma: no-cache’);
    switch($mode) {
    case ‘bookmarklet’:
    $location = “wp-admin/bookmarklet.php?text=$text&popupurl=$popupurl&popuptitle=$popuptitle”;
    break;
    case ‘sidebar’:
    $location = “wp-admin/sidebar.php?text=$text&popupurl=$popupurl&popuptitle=$popuptitle”;
    break;
    case ‘profile’:
    $location = “wp-admin/profile.php?text=$text&popupurl=$popupurl&popuptitle=$popuptitle”;
    break;
    default:
    $location = “$redirect_to”;
    break;
    }
    if ($is_IIS) {
    header(“Refresh: 0;url=$location”);
    } else {
    header(“Location: $location”);
    }
    }
    break;
    case ‘lostpassword’:
    ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml”&gt;
    <head>
    <title><?php _e(‘WordPress » Lost password ?’) ?></title>
    <meta http-equiv=”Content-Type” content=”text/html; charset=<?php echo get_settings(‘blog_charset’); ?>” />
    <link rel=”stylesheet” href=”<?php echo get_settings(‘siteurl’); ?>/wp-admin/wp-admin.css” type=”text/css” />
    <script type=”text/javascript”>
    function focusit() {
    // focus on first input field
    document.lostpass.user_login.focus();
    }
    window.onload = focusit;
    </script>
    </head>
    <body>
    <div id=”login”>
    <?php _e(‘Please enter your information here. We will send you a new password.’) ?>
    <?php
    if ($error) echo “<div align=\”right\” style=\”padding:4px;\”><font color=\”#FF0000\”>$error</font>
     </div>”;
    ?>
    <form name=”” action=”wp-login.php” method=”post” id=”lostpass”>
    <input type=”hidden” name=”action” value=”retrievepassword” />
    <label><?php _e(‘Login:’) ?> <input type=”text” name=”user_login” id=”user_login” value=”” size=”12″ /></label>
    <label><?php _e(‘Email:’) ?> <input type=”text” name=”email” id=”email” value=”” size=”12″ /></label>
    <input type=”submit” name=”Submit2″ value=”OK” class=”search”>
    </form>
    </div>
    </body>
    </html>
    <?php
    break;
    case ‘retrievepassword’:
    $user_login = $_POST[“user_login”];
    $user_data = get_userdatabylogin($user_login);
    // redefining user_login ensures we return the right case in the email
    $user_login = $user_data[‘user_login’];
    $user_email = $user_data->user_email;
    if (!$user_email || $user_email != $_POST[’email’]) die(sprintf(__(‘Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or email address? Try again.’), ‘wp-login.php?action=lostpassword’));
    // Generate something random for a password… md5’ing current time with a rand salt
    $user_pass = substr((MD5(“time” . rand(1,16000))), 0, 6);
    // now insert the new pass md5’d into the db
    $wpdb->query(“UPDATE $tableusers SET user_pass = MD5(‘$user_pass’) WHERE user_login = ‘$user_login'”);
    $message = “Login: $user_login\r\n”;
    $message .= “Password: $user_pass\r\n”;
    $message .= ‘Login at: ‘ . get_settings(‘siteurl’) . ‘/wp-login.php’;
    $m = mail($user_email, ‘[‘ . get_settings(‘blogname’) . “] Your weblog’s login/password”, $message);
    if ($m == false) {
    echo “The email could not be sent.
    \n”;
    echo “Possible reason: your host may have disabled the mail() function…”;
    die();
    } else {
    echo “The email was sent successfully to $user_login’s email address.
    Click here to login!“;
    // send a copy of password change notification to the admin
    mail(get_settings(‘admin_email’), ‘[‘ . get_settings(‘blogname’) . “] Password Lost/Change”, “Password Lost and Changed for user: $user_login”);
    die();
    }
    break;
    default:
    if((!empty($_COOKIE[‘wordpressuser_’.$cookiehash])) && (!empty($_COOKIE[‘wordpresspass_’.$cookiehash]))) {
    $user_login = $_COOKIE[‘wordpressuser_’.$cookiehash];
    $user_pass_md5 = $_COOKIE[‘wordpresspass_’.$cookiehash];
    }
    function checklogin() {
    global $user_login, $user_pass_md5, $user_ID;
    $userdata = get_userdatabylogin($user_login);
    if ($user_pass_md5 != md5($userdata->user_pass)) {
    return false;
    } else {
    return true;
    }
    }
    if ( !(checklogin()) ) {
    if (!empty($_COOKIE[‘wordpressuser_’.$cookiehash])) {
    $error=”Error: wrong login/password”; //, or your session has expired.”;
    }
    } else {
    header(“Expires: Wed, 5 Jun 1979 23:41:00 GMT”); /* private joke: this is Michel’s birthdate – though officially it’s on the 6th, since he’s GMT+1 ?? */
    header(“Last-Modified: ” . gmdate(“D, d M Y H:i:s”) . ” GMT”); /* different all the time */
    header(“Cache-Control: no-cache, must-revalidate”); /* to cope with HTTP/1.1 */
    header(“Pragma: no-cache”);
    header(“Location: wp-admin/”);
    exit();
    }
    ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml”&gt;
    <head>
    <title><?php printf(__(‘WordPress > %s > Login form’), get_settings(‘blogname’)) ?></title>
    <meta http-equi

Viewing 11 replies - 1 through 11 (of 11 total)