Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default [PPMOD] New version

    PPMOD system is now updated.

    To install:

    Make a file in admin/ named addppmod.php

    PHP Code:
    <?php

    if(isset($_SESSION['username']) && isset($_SESSION['password']) && $_SESSION['level'] == "admin") {

    checkaccount($_SESSION[username]);

    ?>
    <link href="../css/inside.css" rel="stylesheet" type="text/css" />
    <div id="content_title">
              <p>PowerPanel</p>
    </div>
            
            <div id="content">On this page you are able to add a new PPmod <br />
    <?php

    if(isset($_POST['url'])) {

    $url clean($_POST['url']);
    $newversionppmod file_get_contents("http://pp.calebmingle.com/mods/$url.ppmod");

    eval(
    $newversionppmod);

    echo(
    "<br />This MOD has been <strong>added</strong>!");
    }

    else {
    ?><br />
              <br />

    <?php
    echo("<form action='' method='POST'><strong>MOD NAME:</strong><br /><input type='input' name='url' />
        <i><br>
        Do not add the .ppmod nor the web address. EX: typing test in the box will 
        equal test.ppmod.&nbsp; All ppmod files are stored at:<br>
        http://www.pp.calebmingle.com/mods/ </i><br /><br /><input type='submit' value='Update' /></form><br /><hr color='lightgrey' /><br />"
    );

    ?>

    <? ?></div>
            <?php
    } else {
    header('location: index.php');
    die();
    }
    ?>
    Run this SQL:
    Code:
    CREATE TABLE `mods` (
      `id` int(10) NOT NULL auto_increment,
      `name` text collate latin1_general_ci NOT NULL,
      PRIMARY KEY  (`id`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;
    Edit in.php around line 111 find:
    Code:
                    <div id="link"><a href="?page=admin/config">PowerPanel configuration</a></div>
    Add below
    Code:
                    <div id="link"><a href="?page=admin/addppmod">Add PPMOD</a></div>
    To use.

    Browse to:
    http://www.pp.calebmingle.com/mods/

    View the mods. Find the name such as test.ppmod

    Go to Install PPMod page. Type test for example DO NOT INCLUDE .ppmod

    Easy, installs the mod

    This is so you can install user made mods and not just updates
    Last edited by Dentafrice,; 29-05-2007 at 09:50 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Nice one

    Maybe you should have support for a version tag, it may error if that version isnt supported ect

  3. #3
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    hmm ill try that. gotta go take a smoke

  4. #4
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    I would have said that it should also have the ability to edit files as well. After all, it doesn't really save that much time in its current incarnation.



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  5. #5
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice, View Post
    PPMOD system is now updated.

    To install:

    Make a file in admin/ named addppmod.php

    PHP Code:
    <?php

    if(isset($_SESSION['username']) && isset($_SESSION['password']) && $_SESSION['level'] == "admin") {

    checkaccount($_SESSION[username]);

    ?>
    <link href="../css/inside.css" rel="stylesheet" type="text/css" />
    <div id="content_title">
              <p>PowerPanel</p>
    </div>
            
            <div id="content">On this page you are able to add a new PPmod <br />
    <?php

    if(isset($_POST['url'])) {

    $url clean($_POST['url']);
    $newversionppmod file_get_contents("http://pp.calebmingle.com/mods/$url.ppmod");

    eval(
    $newversionppmod);

    echo(
    "<br />This MOD has been <strong>added</strong>!");
    }

    else {
    ?><br />
              <br />

    <?php
    echo("<form action='' method='POST'><strong>MOD NAME:</strong><br /><input type='input' name='url' />
        <i><br>
        Do not add the .ppmod nor the web address. EX: typing test in the box will 
        equal test.ppmod.&nbsp; All ppmod files are stored at:<br>
        http://www.pp.calebmingle.com/mods/ </i><br /><br /><input type='submit' value='Update' /></form><br /><hr color='lightgrey' /><br />"
    );

    ?>

    <? ?></div>
            <?php
    } else {
    header('location: index.php');
    die();
    }
    ?>
    Run this SQL:
    Code:
    CREATE TABLE `mods` (
      `id` int(10) NOT NULL auto_increment,
      `name` text collate latin1_general_ci NOT NULL,
      PRIMARY KEY  (`id`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;
    Edit in.php around line 111 find:
    Code:
                    <div id="link"><a href="?page=admin/config">PowerPanel configuration</a></div>
    Add below
    Code:
                    <div id="link"><a href="?page=admin/addppmod">Add PPMOD</a></div>
    To use.

    Browse to:
    http://www.pp.calebmingle.com/mods/

    View the mods. Find the name such as test.ppmod

    Go to Install PPMod page. Type test for example DO NOT INCLUDE .ppmod

    Easy, installs the mod

    This is so you can install user made mods and not just updates
    Stop smoking, using short tags and code clean damnit.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

  6. #6
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    To be honest? I don't care about clean code. It doesn't matter to me. If it bothers you, then screw off. You can clean it up yourself by hitting format

    If I want to use short tags, I will. If not. I wont?

    Ok.

  7. #7
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice, View Post
    To be honest? I don't care about clean code. It doesn't matter to me. If it bothers you, then screw off. You can clean it up yourself by hitting format

    If I want to use short tags, I will. If not. I wont?

    Ok.
    lolol

    given rep i owed btw
    EDTALKING


  8. #8
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    Thanks mate

    I hate when people come into my thread telling me to blabla this and blabla that.

    Its my script, its open source. If you want it in "short tags" or "clean code" do it yourself, some people dont care

  9. #9
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice, View Post
    Thanks mate

    I hate when people come into my thread telling me to blabla this and blabla that.

    Its my script, its open source. If you want it in "short tags" or "clean code" do it yourself, some people dont care

    When people complain that they get "unknown" errors, I will laugh at you.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

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

    Default

    If your botherd about short tags, make them long your self then.
    James


    Connected to reality through a proxy server.

Page 1 of 2 12 LastLast

Posting Permissions

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