Hello people,
What this mod does is that they have a personal Notepad and they can only save up to 5 files, you could add more but it would be to hard for you learners, well here we go:
Run These SQL's one by one:
ALTER TABLE `users` ADD `notepad` text NOT NULL
ALTER TABLE `users` ADD `notepad2` text NOT NULL
ALTER TABLE `users` ADD `notepad3` text NOT NULL
ALTER TABLE `users` ADD `notepad4` text NOT NULL
ALTER TABLE `users` ADD `notepad5` text NOT NULL
ALTER TABLE `users` ADD `notepad1title` text NOT NULL
ALTER TABLE `users` ADD `notepad2title` text NOT NULL
ALTER TABLE `users` ADD `notepad3title` text NOT NULL
ALTER TABLE `users` ADD `notepad4title` text NOT NULL
ALTER TABLE `users` ADD `notepad5title` text NOT NULL
Next create a file called notepad.php and add this in it:
<?php
/*-----------------------------------------------------
- Free Modification
- By Extermination
- For Mccodes V2
- [url]http://adajo.co.cc[/url]
-----------------------------------------------------*/
include "globals.php";
switch($_GET['action'])
{
case 'changetext2': do_changetext(); break;
case 'changetext': changetext(); break;
case 'changetext12': do_changetext2(); break;
case 'changetext22': changetext22(); break;
case 'changetext23': do_changetext3(); break;
case 'changetext33': changetext33(); break;
case 'changetext24': do_changetext4(); break;
case 'changetext44': changetext44(); break;
case 'changetext25': do_changetext5(); break;
case 'changetext55': changetext55(); break;
case 'viewdocument1': viewdocument1(); break;
case 'viewdocument2': viewdocument2(); break;
case 'viewdocument3': viewdocument3(); break;
case 'viewdocument4': viewdocument4(); break;
case 'viewdocument5': viewdocument5(); break;
default: index(); break;
}
function index()
{
global $ir,$c,$userid,$h;
print "<center><h3>{$ir['username']}'s Personal Notepad</h3></center>
<hr width=440>[i]Welcome, You are only aloud 5 Documents, If you wish to View
or Edit them please click the links beside the Document name![/i]<hr width=440>";
print '
<table width="440" height="113" border="1" align="center" bordercolor="#FFFFFF" bgcolor="#666666">
<tr>
<td bgcolor="#333333"><div align="center" class="style1">Documents</div></td>
<td bgcolor="#333333"><div align="center" class="style1">View</div></td>
<td bgcolor="#333333"><div align="center" class="style1">Edit</div></td>
</tr>
<tr><td>';
if($ir['notepad1title'])
{
print "{$ir['notepad1title']}";
}
else
{
print "Document 1";
}
print '
</td>
<td>
<center><font color=black>[</font>[url="notepad.php?action=viewdocument1"]<font color=yellow>[size="1"]View Document[/size]</font>[/url]<font color=black>]</font></center>
</td>
<td>
<center><font color=black>[</font>[url="notepad.php?action=changetext"]<font color=yellow>[size="1"]Edit Document[/size]</font>[/url]<font color=black>]</font></center>
</td>
</tr>
<tr>
<td>';
if($ir['notepad2title'])
{
print "{$ir['notepad2title']}";
}
else
{
print "Document 2";
}
print '</td>
<td>
<center><font color=black>[</font>[url="notepad.php?action=viewdocument2"]<font color=yellow>[size="1"]View Document[/size]</font>[/url]<font color=black>]</font></center>
</td>
<td>
<center><font color=black>[</font>[url="notepad.php?action=changetext22"]<font color=yellow>[size="1"]Edit Document[/size]</font>[/url]<font color=black>]</font></center>
</td>
</tr>
<tr>
<td>';
if($ir['notepad3title'])
{
print "{$ir['notepad3title']}";
}
else
{
print "Document 3";
}
print '</td>
<td>
<center><font color=black>[</font>[url="notepad.php?action=viewdocument3"]<font color=yellow>[size="1"]View Document[/size]</font>[/url]<font color=black>]</font></center>
</td>
<td>
<center><font color=black>[</font>[url="notepad.php?action=changetext33"]<font color=yellow>[size="1"]Edit Document[/size]</font>[/url]<font color=black>]</font></center>
</td>
</tr>
<tr>
<td>';
if($ir['notepad4title'])
{
print "{$ir['notepad4title']}";
}
else
{
print "Document 4";
}
print '</td>
<td>
<center><font color=black>[</font>[url="notepad.php?action=viewdocument4"]<font color=yellow>[size="1"]View Document[/size]</font>[/url]<font color=black>]</font></center>
</td>
<td>
<center><font color=black>[</font>[url="notepad.php?action=changetext44"]<font color=yellow>[size="1"]Edit Document[/size]</font>[/url]<font color=black>]</font></center>
</td>
</tr>
<tr>
<td>';
if($ir['notepad5title'])
{
print "{$ir['notepad5title']}";
}
else
{
print "Document 5";
}
print '</td>
<td>
<center><font color=black>[</font>[url="notepad.php?action=viewdocument5"]<font color=yellow>[size="1"]View Document[/size]</font>[/url]<font color=black>]</font></center>
</td>
<td>
<center><font color=black>[</font>[url="notepad.php?action=changetext55"]<font color=yellow>[size="1"]Edit Document[/size]</font>[/url]<font color=black>]</font></center>
</td>
</tr>
<tr>
<td colspan="3" bgcolor="#333333" height=25><div align="right"><font color=grey>[i]Free Mod Created by <a href="http://adajo.co.cc">
Extermination</a> [/i]</font><font color=#333333>...</font></div></td>
</tr>
</table>
';
}
function changetext()
{
global $ir,$c,$userid,$h;
print "<h3>Text Change</h3>
<form action='notepad.php?action=changetext2' method='post'>
Document Title:
<input type='text' name='newnotepad1'>
<textarea rows=30 cols=90 name='newnotepad' wrap='virtual'>{$ir['notepad']}</textarea>
<input type='submit' value='Change Text' /></form>";
}
function do_changetext()
{
global $ir,$c,$userid,$h;
if($_POST['newnotepad'] == "")
{
print "You did not enter any text!
> [url='notepad.php?action=changetext']Back[/url]";
}
else
{
mysql_query("UPDATE users SET notepad='{$_POST['newnotepad']}' WHERE userid=$userid",$c);
mysql_query("UPDATE users SET notepad1title='{$_POST['newnotepad1']}' WHERE userid=$userid",$c);
print "Text Changed!
> [url='notepad.php']Back[/url]";
}
}
function changetext22()
{
global $ir,$c,$userid,$h;
print "<h3>Text Change</h3>
<form action='notepad.php?action=changetext12' method='post'>
Document Title:
<input type='text' name='newnotepad222'>
<textarea rows=30 cols=90 name='newnotepad2' wrap='virtual'>{$ir['notepad2']}</textarea>
<input type='submit' value='Change Text' /></form>";
}
function do_changetext2()
{
global $ir,$c,$userid,$h;
if($_POST['newnotepad2'] == "")
{
print "You did not enter any text!
> [url='notepad.php?action=changetext22']Back[/url]";
}
else
{
mysql_query("UPDATE users SET notepad2='{$_POST['newnotepad2']}' WHERE userid=$userid",$c);
mysql_query("UPDATE users SET notepad2title='{$_POST['newnotepad222']}' WHERE userid=$userid",$c);
print "Text Changed!
> [url='notepad.php']Back[/url]";
}
}
function changetext33()
{
global $ir,$c,$userid,$h;
print "<h3>Text Change</h3>
<form action='notepad.php?action=changetext23' method='post'>
Document Title:
<input type='text' name='newnotepad333'>
<textarea rows=30 cols=90 name='newnotepad3' wrap='virtual'>{$ir['notepad3']}</textarea>
<input type='submit' value='Change Text' /></form>";
}
function do_changetext3()
{
global $ir,$c,$userid,$h;
if($_POST['newnotepad3'] == "")
{
print "You did not enter any text!
> [url='notepad.php?action=changetext33']Back[/url]";
}
else
{
mysql_query("UPDATE users SET notepad3='{$_POST['newnotepad3']}' WHERE userid=$userid",$c);
mysql_query("UPDATE users SET notepad3title='{$_POST['newnotepad333']}' WHERE userid=$userid",$c);
print "Text Changed!
> [url='notepad.php']Back[/url]";
}
}
function changetext44()
{
global $ir,$c,$userid,$h;
print "<h3>Text Change</h3>
<form action='notepad.php?action=changetext24' method='post'>
Document Title:
<input type='text' name='newnotepad444'>
<textarea rows=30 cols=90 name='newnotepad4' wrap='virtual'>{$ir['notepad4']}</textarea>
<input type='submit' value='Change Text' /></form>";
}
function do_changetext4()
{
global $ir,$c,$userid,$h;
if($_POST['newnotepad4'] == "")
{
print "You did not enter any text!
> [url='notepad.php?action=changetext44']Back[/url]";
}
else
{
mysql_query("UPDATE users SET notepad4='{$_POST['newnotepad4']}' WHERE userid=$userid",$c);
mysql_query("UPDATE users SET notepad4title='{$_POST['newnotepad444']}' WHERE userid=$userid",$c);
print "Text Changed!
> [url='notepad.php']Back[/url]";
}
}
function changetext55()
{
global $ir,$c,$userid,$h;
print "<h3>Text Change</h3>
<form action='notepad.php?action=changetext25' method='post'>
Document Title:
<input type='text' name='newnotepad555'>
<textarea rows=30 cols=90 name='newnotepad5' wrap='virtual'>{$ir['notepad5']}</textarea>
<input type='submit' value='Change Text' /></form>";
}
function do_changetext5()
{
global $ir,$c,$userid,$h;
if($_POST['newnotepad5'] == "")
{
print "You did not enter any text!
> [url='notepad.php?action=changetext55']Back[/url]";
}
else
{
mysql_query("UPDATE users SET notepad5='{$_POST['newnotepad5']}' WHERE userid=$userid",$c);
mysql_query("UPDATE users SET notepad5title='{$_POST['newnotepad555']}' WHERE userid=$userid",$c);
print "Text Changed!
> [url='notepad.php']Back[/url]";
}
}
function viewdocument1()
{
global $ir,$c,$userid,$h;
print "<center><h3>Document 1</h3></center>";
print "
<textarea rows=20 cols=90 wrap='virtual'>{$ir['notepad']}</textarea>
";
print "
<font color=grey>[</font>[url='notepad.php?action=changetext']<font color=yellow>[size="1"]Edit[/size]</font>[/url]<font color=grey>]</font>
<font color=grey>[</font>[url='notepad.php']<font color=yellow>[size="1"]Go Back[/size]</font>[/url]<font color=grey>]</font>";
}
function viewdocument2()
{
global $ir,$c,$userid,$h;
print "<center><h3>Document 2</h3></center>";
print "
<textarea rows=20 cols=90 wrap='virtual'>{$ir['notepad2']}</textarea>
";
print "
<font color=grey>[</font>[url='notepad.php?action=changetext22']<font color=yellow>[size="1"]Edit[/size]</font>[/url]<font color=grey>]</font>
<font color=grey>[</font>[url='notepad.php']<font color=yellow>[size="1"]Go Back[/size]</font>[/url]<font color=grey>]</font>";
}
function viewdocument3()
{
global $ir,$c,$userid,$h;
print "<center><h3>Document 3</h3></center>";
print "
<textarea rows=20 cols=90 wrap='virtual'>{$ir['notepad3']}</textarea>
";
print "
<font color=grey>[</font>[url='notepad.php?action=changetext33']<font color=yellow>[size="1"]Edit[/size]</font>[/url]<font color=grey>]</font>
<font color=grey>[</font>[url='notepad.php']<font color=yellow>[size="1"]Go Back[/size]</font>[/url]<font color=grey>]</font>";
}
function viewdocument4()
{
global $ir,$c,$userid,$h;
print "<center><h3>Document 4</h3></center>";
print "
<textarea rows=20 cols=90 wrap='virtual'>{$ir['notepad4']}</textarea>
";
print "
<font color=grey>[</font>[url='notepad.php?action=changetext44']<font color=yellow>[size="1"]Edit[/size]</font>[/url]<font color=grey>]</font>
<font color=grey>[</font>[url='notepad.php']<font color=yellow>[size="1"]Go Back[/size]</font>[/url]<font color=grey>]</font>";
}
function viewdocument5()
{
global $ir,$c,$userid,$h;
print "<center><h3>Document 5</h3></center>";
print "
<textarea rows=20 cols=90 wrap='virtual'>{$ir['notepad5']}</textarea>
";
print "
<font color=grey>[</font>[url='notepad.php?action=changetext55']<font color=yellow>[size="1"]Edit[/size]</font>[/url]<font color=grey>]</font>
<font color=grey>[</font>[url='notepad.php']<font color=yellow>[size="1"]Go Back[/size]</font>[/url]<font color=grey>]</font>";
}
$h->endpage();
?>
And place this link where you want it to show:
[url="notepad.php"]Personal Notepad[/url]
Now then you have done, Enjoy!
Screenshots:
The reason I created this mod is because when I go away I use my PSP as the Internet, so then I can make mods on my PSP, This mod is like 95% done I will finish it off when I have time and I mean time!
Sorry I never had time to put it all together as I did this in 30 - 60mins, its only a little modification lol
If you have any problems then please say!