Example #1
0
function atExtraLoad($name)
{
    $globalconfig = atGetGlobalConfig();
    extract($globalconfig);
    $extra = atRunningGetVar("extra");
    $platform = atGetPlatform();
    $lang = atGetLang();
    if (@file_exists($atdir . "lang/{$lang}/{$name}.php")) {
        @include_secure($atdir . "lang/{$lang}/{$name}.php");
    } else {
        @include_secure($atdir . "lang/eng/{$name}.php");
    }
    if (@file_exists($extradir . $platform . "/{$name}.ext.php")) {
        @include_secure($extradir . $platform . "/{$name}.ext.php");
    } else {
        @include_secure($extradir . "{$name}.ext.php");
    }
    atRunningSetVar("extra", $extra);
    return $extra[$name];
}
Example #2
0
// ----------------------------------------------------------------------
// Google Tap Beta 0.5.0 - 09 Feb 2003
// Copyright (c) 2002 by Nuke Cops
// http://nukecops.com
// ----------------------------------------------------------------------
// LICENSE and CREDITS
// This program is free software and it's released under the terms of the
// GNU General Public License(GPL) - http://www.gnu.org/licenses/gpl.html
// Please READ carefully the Docs/License.txt file for further details
// Please READ the Docs/credits.txt file for complete credits list
// ----------------------------------------------------------------------
// 05-01-04 Shawn McKenzie: Modified for use as an Extra in AutoTheme 1.7
// ----------------------------------------------------------------------
// Check platform
//
if (atGetPlatform() == "php-nuke") {
    // How to register an extra and the functions that it performs and when to perform them (at operation)
    //
    // $extra[extra name] = array ( 'at operation' => "extra function" );
    //
    $extra['autourls'] = array('name' => 'AutoURLs (BETA)', 'description' => 'Updated Google Tap implementation for AutoTheme', 'version' => '1.7', 'author' => 'Nuke Cops', 'contact' => 'http://nukecops.com', 'themepostprocess' => 'at_autourls_rewrite', 'atadmin' => 'at_admin_autourls');
}
// Extra functions
//
function at_autourls_rewrite($display)
{
    $autourls = atAutoGetVar("autourls");
    $autourlsext = $autourls['extension'];
    if (!$autourlsext) {
        $autourlsext = "phtml";
    }