} $fname = strtolower($classname); $fname = str_replace('_', '', $fname); $fname1 = sprintf('inc%sclass_%s.php', DIRECTORY_SEPARATOR, $fname); if (is_file($fname1)) { require_once $fname1; return; } $fname2 = sprintf('inc%sns_%s.php', DIRECTORY_SEPARATOR, $fname); if (is_file($fname2)) { require_once $fname2; return; } } require_once 'config.php'; $cfg = CoreConfig::init(); # new CoreInit( # $cfg->enc_from, # $cfg->enc_to, # $cfg->comp_level, # $cfg->email # ); define('OPT_DIR', Path::join(ROOT, 'inc', 'opt') . Path::DS); require_once Path::join(ROOT, 'inc', 'opt', 'opt.class.php'); ### $pm = new Meta('post', 1); ### ### $pm->show(); ### ### $pm->sticky=0; ### $pm->allow_comments=0; ### $pm->only_in_category=0;