function fs_get_help($id, $type) { $help = fs_r("Unknown site type"); $site = fs_get_site($id); switch ($type) { case FS_SITE_TYPE_GENERIC: $help = fs_get_generic_help($site); break; case FS_SITE_TYPE_WORDPRESS: $help = fs_get_wordpress_help($site); break; case FS_SITE_TYPE_DJANGO: $help = fs_get_django_help($site); break; case FS_SITE_TYPE_DRUPAL: $help = fs_get_drupal_help($site); break; case FS_SITE_TYPE_GREGARIUS: $help = fs_get_gregarius_help($site); break; case FS_SITE_TYPE_JOOMLA: $help = fs_get_joomla_help($site); break; case FS_SITE_TYPE_MEDIAWIKI: $help = fs_get_mediawiki_help($site); break; case FS_SITE_TYPE_TRAC: $help = fs_get_trac_help($site); break; case FS_SITE_TYPE_GALLERY2: $help = fs_get_gallery2_help($site); break; } return $help; }
<?php header('Content-type: text/html; charset=utf-8'); require_once dirname(__FILE__) . '/init.php'; require_once FS_ABS_PATH . '/php/html-utils.php'; require_once FS_ABS_PATH . '/php/db-sql.php'; $site_id = isset($_GET['site_id']) ? $_GET['site_id'] : null; $views = ''; $visits = ''; if (isset($site_id)) { $site = fs_get_site($site_id); $baseline = fs_get_site_baseline_values($site_id); $views = $baseline->views; $visits = $baseline->visits; } ?> <div class='<?php echo fs_lang_dir(); ?> '> <h3><?php isset($site_id) ? fs_e('Edit site') : fs_e('Create a new site'); ?> </h3> <table> <tr> <td><label for='new_username'><?php fs_e('ID'); ?> </label></td> <td>