$code = 'Error No widget specified.';
                         }
                         break;
                     case 'bookmarklet':
                         require_once PATH_CORE . '/classes/dynamicTemplate.class.php';
                         $dynTemp = dynamicTemplate::getInstance();
                         include PATH_TEMPLATES . '/bookmarklet.php';
                         break;
                     case 'ad':
                         $locale = $_GET['locale'];
                         if (strlen($locale) > 35) {
                             exit;
                         }
                         // deliver ad in iframe
                         require_once PATH_CORE . '/classes/adCode.class.php';
                         $adObj = new AdCodeTable();
                         $code = $adObj->fetch($locale);
                         break;
                     case 'scaleImg':
                         // scale image request
                         require_once PATH_CORE . '/classes/images.class.php';
                         $img = new images();
                         $img->fetchImage();
                         exit;
                         break;
                 }
                 echo $code;
             }
         }
     }
 }
$ssObj->setState('max_sessions', MAX_SESSIONS_ACTIVE);
if ($manageObj->modifyLibrary(PATH_CORE . '/classes/', 'userBlogs.class.php')) {
    // create UserBlogs
    require_once PATH_CORE . '/classes/userBlogs.class.php';
    UserBlogsTable::createTable($manageObj);
}
if ($manageObj->modifyLibrary(PATH_CORE . '/classes/', 'widgets.class.php')) {
    // create Widgets
    require_once PATH_CORE . '/classes/widgets.class.php';
    WidgetsTable::createTable($manageObj);
    FeaturedWidgetsTable::createTable($manageObj);
}
if ($manageObj->modifyLibrary(PATH_CORE . '/classes/', 'adCode.class.php')) {
    // create AdCode Table
    require_once PATH_CORE . '/classes/adCode.class.php';
    AdCodeTable::createTable($manageObj);
}
if ($manageObj->modifyLibrary(PATH_CORE . '/classes/', 'subscriptions.class.php')) {
    require_once PATH_CORE . '/classes/subscriptions.class.php';
    SubscriptionsTable::createTable($manageObj);
}
if (defined('ENABLE_WALL') and ENABLE_WALL === true) {
    if ($manageObj->modifyLibrary(PATH_CORE . '/classes/', 'forum.class.php')) {
        // create ForumTopics Table
        require_once PATH_CORE . '/classes/forum.class.php';
        ForumTopicsTable::createTable($manageObj);
        $wall = new ForumTopicsTable($manageObj->db);
        $wall->initialize();
    }
}
if (defined('MODULE_FACEBOOK') and MODULE_FACEBOOK === true) {