| Questions and Answers |
| Search found 17 results |
1 Can I still use PHP-Nuke themes, modules and blocks?
Preview: In most cases you can, but you won't be able to use CPG-Nuke's collapsable blocks unless you modify the theme.
Open up [b]themes/ ... |
2 sql_query() vs. $db->sql_query()
Preview: PHP-Nuke:
[php]$result = sql_query("SELECT * FROM ".$prefix."_users", $dbi);[/php]
CPG-Nuke:
[php]$result = $db->sql_query("S ... |
3 sql_num_rows() vs. $db->sql_numrows()
Preview: PHP-Nuke:
[php]$count = sql_num_rows($result);[/php]
CPG-Nuke:
[php]$count = $db->sql_numrows($result);[/php] ... |
4 sql_fetch_array() vs. $db->sql_fetchrow()
Preview: PHP-Nuke:
[php]$array = sql_fetch_array($result);[/php]
CPG-Nuke:
[php]$array = $db->sql_fetchrow($result);[/php] ... |
5 sql_fetch_row() vs. $db->sql_fetchrow()
Preview: PHP-Nuke:
[php]$array = sql_fetch_row($result);[/php]
CPG-Nuke:
[php]$array = $db->sql_fetchrow($result);[/php] ... |
6 register_globals... to use them or not to use them?
Preview: PHP-Nuke overrode PHP's default setting for register_globals (OFF by default, as of PHP 4.2.0). Misuse of register_globals can com ... |
7 Retrieving data from cms_config_custom
Preview: In PHP-Nuke and CPG-Nuke versions prior to 8.2, the table cms_config was used for storing configuration data. As part of our conti ... |
8 Direct access protection
Preview: We have created a better, more secure way of protecting files from being directly accessed by a user.
PHP-Nuke:
[php]if (eregi ... |
9 Obtaining information about the current user
Preview: In PHP-Nuke, if you wanted to obtain information about the given user, you would have to decode the cookie yourself, a process tha ... |
10 Limiting access to administrator modules
Preview: In PHP-Nuke, extra code was wasted for determining if the given administrator had permission to access the requested admin module. ... |
11 Including the appropriate files
Preview: In PHP-Nuke, each module made a direct inclusion to [b]mainfile.php[/b], something like:
[php]require_once("mainfile.php");[/php] ... |
12 Reduce code by using list()
Preview: A lot of code can be reduced by using PHP's list() function instead of assigning variables to the result set of an SQL query one b ... |
13 Sending mail through CPG-Nuke
Preview: PHP-Nuke used PHP's mail() function for sending mail. The trouble with this is that it has limited usage and does not support SMTP ... |
14 $Version_Num vs. CPG_NUKE
Preview: As of CPG-Nuke 9.x, $Version_Num has become deprecated. Why? PHP-Nuke 8.x is around the corner and using $Version_Num to compare v ... |
15 Using the right amount of quotes
Preview: PHP-Nuke's code was sloppy, one example being excessive quoting. Let's take this bit of code:
[php]if ($month == 1) { echo ""._JA ... |
16 Only fetch the needed data in a query
Preview: PHP-Nuke queries often selected all data from a selected table, only to perform a simple action such as counting the number of row ... |
17 Freeing the memory associated with MySQL result sets
Preview: When working with several result sets in a single script, the memory associated with these result sets can become congested. By us ... |