Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default [PP] Un-Official CHMOD mod

    This mod is just to save you the job of CHMOD'ing 'sql.php' and 'config.php'

    Step 1: Setting up the mod(); function.


    Ok first off open up your 'functions.php' file in the includes folder.

    Then add this code:

    PHP Code:
    function mod(){
    chmod('includes/config.php''0777');
    chmod('includes/sql.php''0777');

    After this:

    PHP Code:
    <?php
    include("config.php");
    But before this:

    PHP Code:
    function clean($string) {
    $string htmlspecialchars($string);
    $string stripslashes($string);
    $string mysql_escape_string($string);
    $string htmlentities($string);
    $string str_replace("\""""$string); // Don't ask why after I did stripslashes() [:
    $string str_replace(">"""$string);
    $string str_replace("<"""$string);
    return 
    $string;

    Step 2: Applying the mod function


    Open up 'installer.php'

    Find:
    PHP Code:
    case '1':
                
    ## FIRST STAGE
                
                
    echo("<strong>Welcome to the POWERpanel installation!</strong><br />You are currently at Stage 1 of the installation<br /><br />In stage 1 you will have to provide the installer with your mySQL Settings so that it. can install your database. Please fill in the following forms<br /><br />"); 
    After that, add in:

    PHP Code:
    mod(); 
    Above:

    PHP Code:
    ## Forms
                
    echo('<form action="?stage=2" method="post">'); 
    A simple tiny little mod for those who don't no how to CHMOD.This mod also makes the installation more automatic.
    Last edited by Mr Macro; 29-05-2007 at 10:08 AM.
    James


    Connected to reality through a proxy server.

  2. #2
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    Is it just my comp or do the spoilers not work


  3. #3
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    Mine did at first, their not working now :S
    James


    Connected to reality through a proxy server.

  4. #4
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    They don't work on other Posts either.
    The Spoiler MOD has broken


  5. #5
    Oni Guest

    Default

    Yeh, i noticed that. They werent working on my layout thread so I just took it out of spoilers.

  6. #6
    Join Date
    Nov 2004
    Location
    Reading, UK
    Posts
    3,060
    Tokens
    1,780

    Latest Awards:

    Default

    I think the forum has been upgraded to 3.6.7 and that might be why.

  7. #7
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    I'll just whack it out of spoilers, 1 mo.
    James


    Connected to reality through a proxy server.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •