set_filenames(array('no_photo_yet'=>'no_photo_yet.tpl')); if (is_admin()) { $url = $conf['no_photo_yet_url']; if (substr($url, 0, 4) != 'http') { $url = get_root_url().$url; } $template->assign( array( 'step' => 2, 'intro' => sprintf( l10n('Hello %s, your Piwigo photo gallery is empty!'), $user['username'] ), 'next_step_url' => $url, 'deactivate_url' => get_root_url().'?no_photo_yet=deactivate', ) ); } else { $template->assign( array( 'step' => 1, 'U_LOGIN' => 'identification.php', 'deactivate_url' => get_root_url().'?no_photo_yet=browse', ) ); } $template->pparse('no_photo_yet'); exit(); } else { conf_update_param('no_photo_yet', 'false'); } } ?>