Dentafrice,
29-05-2007, 09:43 PM
PPMOD system is now updated.
To install:
Make a file in admin/ named addppmod.php
<?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. 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:
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:
<div id="link"><a href="?page=admin/config">PowerPanel configuration</a></div>
Add below
<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
To install:
Make a file in admin/ named addppmod.php
<?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. 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:
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:
<div id="link"><a href="?page=admin/config">PowerPanel configuration</a></div>
Add below
<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