|
| ||||||||||
| Tags: hacker, linux, php, phpnuke, portal |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Administrative Forms for PHP-Nuke portal system
![]() |
|
#2
| |||
| |||
| Re: Administrative Forms for PHP-Nuke portal system
Hi, welcome again, I am sure that you must have developed your own module that displays the horoscopes. But if we want to change, what do we do? Recourse to an administrative form. But it is not documented in the documentation shows how to realize it, but with a little 'reverse engineering' (ie reading the code) is pretty easy to see how. Herein is not guaranteed correct. In fact this is done by examining how deductions are made of standard modules. But the author of the website may change coding standards and maybe the next version of the mechanism reported here may no longer work. But take the risk. Also because if you do not have the skills to read the code of PHPNuke is difficult to attain our own administrative forms. From what I could deduce, to implement an administration module, you must follow three steps. The first step is to create a link in the administration menu, the second step is to implement a switch that allows you to choose which operation to perform administration, and the third step is to carry out the administrative functions themselves. |
|
#3
| |||
| |||
| Re: Administrative Forms for PHP-Nuke portal system
To accomplish the first step is to write a file located in the admin / links / links.horoscope.php. To realize the second step was to write a file located in admin / case / case.horoscope.php. Finally, the code administration module itself will be found in the file admin / modules / horoscope first two pieces of code are used only to attach the module that we are writing to the administration menu and selecting operations. |
|
#4
| |||
| |||
| Re: Administrative Forms for PHP-Nuke portal system
To achieve this capability we should write a file admin / links / links.horoscope.php as follows: Code: if (($ radminsuper == 1)) {
adminmenu ("admin.php? horoscope op =", "Horoscope", "horoscope.gif");
} Code: if (eregi ("admin.php", $ PHP_SELF)) {die ("Access Denied");}
switch ($ op) {
case "horoscope": include ("admin / modules / horoscope.php") break;
case "horoscopesave: include (" admin / modules / horoscope.php ") break;
} |
|
#5
| |||
| |||
| Re: Administrative Forms for PHP-Nuke portal system
The file admin / modules / horoscope.php contains code to manage the administrative module. This code is to display the entire page, including the menu for access to administrative functions, and call other functions. The functions involved in a case to display the form, and in the case to save the horoscope changed. Code: global $ hlpfile, $ admin, $ prefix, $ language, $ multilingual;
include ("header.php");
GraphicAdmin ("manual / horoscope.html");
OpenTable ();
switch ($ op) {
case "savehoroscope": save (); break;
default: form (); break;
}
CloseTable ();
include ("footer.php");
The function that displays the form is:
form function () {
$ Q = mysql_query ("select sign, horoscope forecasts from order by order");
echo "<h1 align='center'> Weather </ h1> \ n";
echo "<table border='1' width='100%'>";
while (list ($ sign, $ forecast) = mysql_fetch_row ($ q)) {
echo "<form method='GET' action='admin.php'>";
echo "<input type='hidden' name='op' value='savehoroscope'>";
echo "<input type='hidden' name='sign' value='$sign'>";
echo "<tr> <td valign='middle'> $ sign </ td>";
echo "<td> <textarea name='forecast' rows='1' cols='60'> $ forecast </ textarea> </ td>";
echo "<input <td> type='submit' value='Save'> </ td> \ n";
echo "</ form> </ tr>";
}
} Code: function save () {
global $ sign, $ forecast;
if (mysql_query (
"Update September horoscope forecasts = '$ forecast' where symbol = '$ sign'"))
{
echo "$ <h1> Horoscope for sign saved. </ h1>";
Else {}
echo "Error saving <h1> </ h1>";
}
} |
|
#6
| |||
| |||
| Re: Administrative Forms for PHP-Nuke portal system
Many programs for Linux are developed in C / C++, complex language known to the management of which is reserved for "hacker" of great powers. This software is made from PHP in simple language, it requires no complex coding flips and also to be extended, but it seems that its implementation requires expertise and an overview of remarkable. We talk about killer apps, programs that era. In my view, the evolution of the Web from its static phase (the phase of the website "brochure", all big words and graphics) to dynamic (the part of the site "magazine") PHPNuke is the real killer application for Linux and the Web in recent years. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Administrative Forms for PHP-Nuke portal system" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I get the Tactical Nuke into Empires & Allies? | Dajbog | Video Games | 7 | 22-08-2011 11:02 PM |
| How to create custom module for PHP-Nuke portal system | Betelgeuse | Software Development | 6 | 11-01-2011 02:28 PM |
| Crysis Warhead C4 nuke while playing | Wampanoag | Video Games | 4 | 15-04-2010 11:29 AM |
| Installing PHP Nuke | Pyrotechnic | Software Development | 4 | 03-11-2008 06:28 PM |
| Re: Outlook MAPI32.DLL Error How to Fix It /Nuke C:\Windows\System | Owala | Vista Setup and Install | 1 | 19-03-2007 03:22 AM |