Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter fakeoutdoorsman

    (@fakeoutdoorsman)

    I got it to work after editing tiny_mce_gzip.php. The PHP function “realpath” wasn’t working on the host’s server.

    Open tiny_mce_gzip.php.

    Find all instances of:
    realpath(

    Replace with
    realpath2(

    After:
    @ require('../../../wp-config.php');

    Add:
    function realpath2($path)
    {
    ////check if realpath is working
    if (strlen(realpath($path))>0)
    return realpath($path);

    ///if its not working use another method///
    $p=getenv(“PATH_TRANSLATED”);
    $p=str_replace(“\\”,”/”,$p);
    $p=str_replace(basename(getenv(“PATH_INFO”)),””,$p);
    $p.=”/”;
    if ($path==”.”)
    return $p;
    //now check for back directory//
    $p=$p.$path;

    $dirs=split(“/”,$p);
    foreach($dirs as $k => $v)
    {

    if ($v==”..”)
    {
    $dirs[$k]=””;
    $dirs[$k-2]=””;
    }
    }
    $p=””;
    foreach($dirs as $k => $v)
    {
    if (strlen($v)>0)
    $p.=$v.”/”;
    }
    $p=substr($p,0,strlen($p)-1);

    if (is_dir($p))
    return $p;
    if (is_file($p))
    return $p;

    return false;

    }

    Find:
    $tinymce = file_get_contents(realpath("tiny_mce.js"));

    Replace with:
    $tinymce = file_get_contents("tiny_mce.js");

    Thread Starter fakeoutdoorsman

    (@fakeoutdoorsman)

    I downloaded todays nightly build and I am still having problems with tinymce not loading.

    Thread Starter fakeoutdoorsman

    (@fakeoutdoorsman)

    I’m wondering how the spam machines are actually finding wordpress sites. Mine wasn’t targeted until the day I reinstalled and redesigned the whole thing using the Oct. 18 nightly. The former install was using a 1.3 nightly version as well. Maybe they do a search for “powered by wordpress” or somehow intercept notifications to site update services. Anyone have any ideas?

    Thread Starter fakeoutdoorsman

    (@fakeoutdoorsman)

    Oh, ok. Thanks for the clear up. Duh…

    Thread Starter fakeoutdoorsman

    (@fakeoutdoorsman)

    Beel…I don’t get you you mean.

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