Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once 'lib/personas_constants.php';
- require_once 'lib/personas_functions.php';
- require_once 'lib/storage.php';
- require_once 'lib/user.php';
- require_once 'lib/src.php';
- include 'templates/cachecheck.php';
- $db = new PersonaStorage();
- $user = new PersonaUser();
- $username = $user->authenticate();
- $categories = $db->get_categories();
- array_unshift($categories, 'All');
- $category = null;
- $path = array_key_exists('PATH_INFO', $_SERVER) ? $_SERVER['PATH_INFO'] : '/';
- $path = substr($path, 1); #chop the lead slash
- list($persona_id) = explode('/', $path);
- $page_header = _("View Personas");
- if (!is_numeric($persona_id))
- $persona_id = null;
- else
- {
- $persona_id = intval($persona_id);
- $persona = $db->get_persona_by_id($persona_id);
- if ($persona['status'] == 1)
- $page_header = sprintf(/*L10N: %1$s is the persona name, %2$s is the author name*/_('%1$s by %2$s'), $persona['name'], $persona['display_username']);
- $category = $persona['category'];
- $persona['json'] = htmlentities(json_encode(extract_record_data($persona)));
- }
- $favorite_persona = $username ? $db->is_favorite_persona($username, $persona_id) : null;
- $nonce = $user->generate_nonce('favoritespage');
- $url_prefix = '/gallery';
- $tabs = null;
Add Comment
Please, Sign In to add comment