コード例 #1
0
 public static function get_email_adding_redirect_script()
 {
     #$form_action = new HTMLTags_URL();
     #
     #$form_action->set_file('/');
     $form_action = PublicHTML_URLHelper::get_base_url();
     #$form_action->set_get_variable('section', 'plug-ins');
     #$form_action->set_get_variable('module', 'mailing-list');
     #$form_action->set_get_variable('page', 'sign-up');
     #$form_action->set_get_variable('type', 'redirect-script');
     #$form_action->set_get_variable('add_person');
     $form_action->set_get_variable('oo-page');
     $form_action->set_get_variable('pcro-factory', 'MailingList_PCROFactory');
     $form_action->set_get_variable('page', 'sign-up');
     $form_action->set_get_variable('type', 'redirect-script');
     $form_action->set_get_variable('add_person');
     return $form_action;
 }
コード例 #2
0
 public static function get_db_page_url($page_name)
 {
     #$ph_cm = Configuration_ConfigManagerHelper
     #	::get_config_manager(
     #		'haddock',
     #		'public-html'
     #	);
     #
     #if ($ph_cm->server_has_mod_rewrite()) {
     if (PublicHTML_ServerCapabilitiesHelper::has_mod_rewrite()) {
         #echo "has mod_rewrite!\n";
         $url = new HTMLTags_URL();
         $url->set_file("/db-pages/{$page_name}.html");
     } else {
         $url = PublicHTML_URLHelper::get_base_url();
         $url->set_get_variable('oo-page');
         $url->set_get_variable('pcro-factory', 'DBPages_PCROFactory');
         $url->set_get_variable('page', $page_name);
     }
     return $url;
 }