function navigation()
 {
     global $config, $my, $tpl, $db, $myini;
     $scache = new scache('modules_navigation');
     if ($scache->existsdata() == TRUE) {
         $menu = $scache->importdata();
     } else {
         $result = $db->query("SELECT id, name, link, param, groups, sub, module FROM {$db->pre}menu WHERE active = '1' AND FIND_IN_SET('navigation', position) ORDER BY ordering, id", __LINE__, __FILE__);
         $menu = array();
         while ($row = $db->fetch_assoc($result)) {
             if (!isset($menu[$row['sub']])) {
                 $menu[$row['sub']] = array();
             }
             $menu[$row['sub']][] = $row;
         }
         $scache->exportdata($menu);
     }
     foreach ($menu[0] as $row) {
         if ($row['module'] == 0 && isset($menu[$row['id']])) {
             if ($this->GroupCheck($row['groups'])) {
                 $nav_s = array();
                 foreach ($menu[$row['id']] as $sub) {
                     if ($this->GroupCheck($sub['groups'])) {
                         $sub['sub'] = array();
                         if (isset($menu[$sub['id']])) {
                             foreach ($menu[$sub['id']] as $subsub) {
                                 if ($this->GroupCheck($subsub['groups'])) {
                                     $sub['sub'][] = $subsub;
                                 }
                             }
                         }
                         $nav_s[] = $sub;
                     }
                 }
                 $tpl->globalvars(compact("row", "nav_s", "nav_ss"));
                 echo $tpl->parse("modules/navigation");
             }
         } else {
             if ($row['module'] == 1 && ($row['groups'] == NULL || $this->GroupCheck($row['groups']) == TRUE)) {
                 $dir = 'modules/' . $row['link'] . '/';
                 $ini = $myini->read($dir . "config.ini");
                 if (count($ini) > 0 && file_exists($dir . $ini['php'][0])) {
                     include $dir . $ini['php'][0];
                 }
                 unset($dir, $ini);
             }
         }
     }
 }
">View Contents</a>] [<a href="admin.php?action=misc&job=cache_refresh&file=<?php 
        echo $name;
        ?>
">Refresh Cache</a>]</td>
  </tr>
  <?php 
    }
    ?>
 </table>
	<?php 
    echo foot();
} elseif ($job == 'cache_view') {
    $file = $gpc->get('file', str);
    echo head();
    $cache = new scache($file);
    $data = $cache->importdata();
    ?>
 <table class="border" border="0" cellspacing="0" cellpadding="4" align="center">
  <tr> 
   <td class="obox"><b>Cache-Manager &raquo; <?php 
    echo $file;
    ?>
</b></td>
  </tr>
  <tr> 
   <td class="mbox">
   <pre><?php 
    print_r($data);
    ?>
</pre>
   </td>
function cache_spiders()
{
    global $db;
    $scache = new scache('spiders');
    if ($scache->existsdata() == TRUE) {
        $bot = $scache->importdata();
    } else {
        $result = $db->query("SELECT id, user_agent, bot_ip, name, type FROM {$db->pre}spider", __LINE__, __FILE__);
        $bot = array();
        while ($row = $db->fetch_assoc($result)) {
            $bot[$row['id']] = $row;
        }
        $scache->exportdata($bot);
    }
    return $bot;
}
 function getStatusData()
 {
     global $db;
     $scache = new scache('group_status');
     if ($scache->existsdata() == TRUE) {
         $this->statusdata = $scache->importdata();
     } else {
         $cresult = $db->query("SELECT id, admin, guest, title, core FROM {$db->pre}groups ORDER BY core DESC", __LINE__, __FILE__);
         while ($row = $db->fetch_assoc($cresult)) {
             $this->statusdata[$row['id']] = $row;
         }
         $scache->exportdata($this->statusdata);
     }
 }
 <table class="border" border="0" cellspacing="0" cellpadding="4" align="center">
  <tr> 
   <td class="obox"><b>Schritt 1 von <?php 
    echo $steps + 1;
    ?>
</b></td>
  </tr>
  <tr> 
   <td class="mbox">Die Daten wurden gespeichert<br>Die Emails werden nun in Staffeln versandt.</td>
  </tr>
 </table>	
<?php 
    echo foot();
} elseif ($job == 'newsletter3') {
    $scache = new scache('newsletter_session');
    $emails = $scache->importdata();
    $int2 = $gpc->get('int2', int, 100);
    $page = $gpc->get('page', int, 1);
    $anz = count($emails);
    $steps = ceil($anz / $int2);
    $result = $db->query('SELECT * FROM ' . $db->pre . 'newsletter WHERE id = ' . $gpc->get('id', int));
    $row = $db->fetch_assoc($result);
    $split = array_chunk($emails, $int2);
    $minus = $page - 1;
    $plus = $page + 1;
    $i = 0;
    if (!isset($split[$minus]) || !is_array($split[$minus])) {
        echo head();
        error('admin.php?action=members&job=newsletter', 'Keine E-Mail-Adressen zu dieser Staffel gefunden!');
    }
    foreach ($split[$minus] as $mail) {
function import_error_data($fid)
{
    $scache = new scache('temp/errordata/' . $fid, '');
    $data = $scache->importdata();
    return $data;
}
<?php

$scache = new scache('grabrss');
if ($scache->existsdata() == TRUE) {
    $grabrss_cache = $scache->importdata();
} else {
    $cresult = $db->query("SELECT id, file, title, entries, max_age FROM {$db->pre}grab", __LINE__, __FILE__);
    $grabrss_cache = array();
    while ($row = $db->fetch_assoc($cresult)) {
        $row['title'] = htmlentities($row['title'], ENT_QUOTES);
        $grabrss_cache[$row['id']] = $row;
    }
    $scache->exportdata($grabrss_cache);
}
 function cache_smileys()
 {
     global $db, $bbcode;
     $scache = new scache('smileys');
     if ($scache->existsdata() == TRUE) {
         $cache = $scache->importdata();
     } else {
         $bbresult = $db->query("SELECT * FROM {$db->pre}smileys", __LINE__, __FILE__);
         $cache = array();
         while ($bb = $db->fetch_assoc($bbresult)) {
             $cache[] = $bb;
         }
         $scache->exportdata($cache);
     }
     $this->smileys = $cache;
 }
} elseif ($_GET['action'] == "filetypes") {
    $result = $db->query("SELECT * FROM {$db->pre}filetypes WHERE extension LIKE '%{$_GET['type']}%'", __LINE__, __FILE__);
    $nr = $db->num_rows($result);
    $cache = array();
    while ($row = $db->fetch_assoc($result)) {
        $row['extension'] = str_replace(',', ', ', $row['extension']);
        $cache[] = $row;
    }
    echo $tpl->parse("popup/header");
    echo $tpl->parse("popup/filetypes");
    $mymodules->load('popup_filetypes_bottom');
} elseif ($_GET['action'] == "code") {
    include_once 'classes/class.geshi.php';
    $scache = new scache('syntax-highlight');
    if ($scache->existsdata() == TRUE) {
        $clang = $scache->importdata();
    } else {
        $clang = array();
        $d = dir("classes/geshi");
        while (false !== ($entry = $d->read())) {
            if (get_extension($entry, TRUE) == 'php' && !is_dir("classes/geshi/" . $entry)) {
                include_once "classes/geshi/" . $entry;
                $short = str_replace('.php', '', $entry);
                $clang[$short]['file'] = $entry;
                $clang[$short]['name'] = $language_data['LANG_NAME'];
                $clang[$short]['short'] = $short;
            }
        }
        $d->close();
        asort($clang);
        $scache->exportdata($clang);
	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
error_reporting(E_ALL);
DEFINE('SCRIPTNAME', 'components');
include "data/config.inc.php";
include "classes/function.viscacha_frontend.php";
$zeitmessung1 = t1();
$slog = new slog();
$my = $slog->logged();
$lang->init($my->language);
$tpl = new tpl();
$my->p = $slog->Permissions();
$cid = $gpc->get('cid', int);
$scache = new scache('components');
if ($scache->existsdata() == TRUE) {
    $cache = $scache->importdata();
} else {
    $cresult = $db->query("SELECT id, file FROM {$db->pre}component WHERE active = '1'", __LINE__, __FILE__);
    $cache = array();
    while ($comp = $db->fetch_assoc($cresult)) {
        $cache[$comp['id']] = $comp;
    }
    $scache->exportdata($cache);
}
if (isset($cache[$cid])) {
    DEFINE('COM_ID', $cache[$_GET['cid']]['id']);
    DEFINE('COM_DIR', 'components/' . COM_ID . '/');
    $ini = $myini->read(COM_DIR . 'components.ini');
    $mod = $gpc->get('file', str, 'frontpage');
    if (!isset($ini['module'][$mod])) {
        DEFINE('COM_MODULE', 'frontpage');
function cache_spiders()
{
    global $db;
    $s3cache = new scache('spiders');
    if ($s3cache->existsdata() == TRUE) {
        $botua = $s3cache->importdata();
    } else {
        $cresult = $db->query("SELECT user_agent, name, type FROM {$db->pre}spider", __LINE__, __FILE__);
        $botua = array();
        while ($catc = $db->fetch_assoc($cresult)) {
            $botua[] = $catc;
        }
        $s3cache->exportdata($botua);
    }
    return $botua;
}