Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Editing pages

  1. #11
    Join Date
    Aug 2004
    Location
    Over there. ^_^
    Posts
    1,100
    Tokens
    0

    Latest Awards:

    Default

    im in the process of making my own admincp cms, so far i can add news with the news system i made, add affiliates, and beacause ive just found a file editing script i can edit all of the content boxes heres the script i think it can be changed to edit any page

    PHP Code:
    <?php

    if ($submit) {
    $fp fopen("data.txt""w");
    fwrite($fpstripslashes($newdata));
    fclose($fp);
    }

    $fp fopen("data.txt""r");
    while (!
    feof($fp)) {
    $data .= fgets($fp4096);
    }
    fclose($fp);

    ?>

    <html>
    <head>
    <title>Untitled</title>
    </head>

    <body>
    <form action="<? print $PHP_SELF?>" method="post">
    <textarea name="newdata" rows="10" cols="40">
    <?
    print $data;
    ?>
    </textarea>

    <input type="submit" name="submit" value="Submit">
    </form>

    </body>
    </html>
    *Image Removed


    Ahemm.. How exactly was my sig innapropriate?
    Goddamit i hate this forum :@
    I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@

  2. #12
    Join Date
    Aug 2004
    Location
    Over there. ^_^
    Posts
    1,100
    Tokens
    0

    Latest Awards:

    Default

    and it works aswell !! with any type of file !
    *Image Removed


    Ahemm.. How exactly was my sig innapropriate?
    Goddamit i hate this forum :@
    I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@

Page 2 of 2 FirstFirst 12

Posting Permissions

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