コード例 #1
0
ファイル: login.php プロジェクト: mozdial/Directory
<?php

/**
* @project ApPHP Business Directory
* @copyright (c) 2011 ApPHP
* @author ApPHP <*****@*****.**>
* @license http://www.gnu.org/licenses/
*/
// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
// Draw title bar
draw_title_bar(prepare_breadcrumbs(array(_ACCOUNTS => '', _CUSTOMER_LOGIN => '')));
// Check if customer is logged in
if (!$objLogin->IsLoggedIn() && ModulesSettings::Get('customers', 'allow_login') == 'yes') {
    if ($objLogin->IsWrongLogin()) {
        draw_important_message($objLogin->GetLoginError()) . '<br />';
    } else {
        if ($objLogin->IsIpAddressBlocked()) {
            draw_important_message(_IP_ADDRESS_BLOCKED) . '<br />';
        } else {
            if ($objLogin->IsEmailBlocked()) {
                draw_important_message(_EMAIL_BLOCKED) . '<br />';
            } else {
                if ($objSession->IsMessage('notice')) {
                    draw_message($objSession->GetMessage('notice'));
                }
            }
        }
    }
    $remember_me = isset($_POST['remember_me']) ? (int) $_POST['remember_me'] : '';
コード例 #2
0
            }
        }
        // Start main content
        draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _GALLERY_MANAGEMENT => '', _ALBUM => '', $album_info[0]['name'] => '', ucfirst($action) => '')), prepare_permanent_link('index.php?admin=mod_gallery_management', _BUTTON_BACK));
        //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
        echo $msg;
        draw_content_start();
        if ($mode == 'view') {
            $objAlbumItems->DrawViewMode();
        } else {
            if ($mode == 'add') {
                $objAlbumItems->DrawAddMode();
            } else {
                if ($mode == 'edit') {
                    $objAlbumItems->DrawEditMode($rid);
                } else {
                    if ($mode == 'details') {
                        $objAlbumItems->DrawDetailsMode($rid);
                    }
                }
            }
        }
        draw_content_end();
    } else {
        draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _GALLERY_MANAGEMENT => '', _ALBUM => '')), prepare_permanent_link('index.php?admin=mod_gallery_management', _BUTTON_BACK));
        draw_important_message(_WRONG_PARAMETER_PASSED);
    }
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
コード例 #3
0
ファイル: payment_cancel.php プロジェクト: mozdial/Directory
<?php

// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
if (Modules::IsModuleInstalled('payments') && ModulesSettings::Get('payments', 'is_active') == 'yes') {
    draw_title_bar(prepare_breadcrumbs(array(_MY_ACCOUNT => '', _ADVERTISE => '', _ORDER_CANCELED => '')));
    draw_content_start();
    draw_message(_ORDER_WAS_CANCELED_MSG, true, true);
    draw_content_end();
} else {
    draw_important_message(_NOT_AUTHORIZED);
}
コード例 #4
0
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 $objListings = Listings::Instance($listing_id);
 $listing_info_name = $objListings->GetField('business_name');
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_MY_ACCOUNT => '', _MY_LISTINGS => '', $listing_info_name => '', _CATEGORIES => '', ucfirst($action) => '')), prepare_permanent_link('index.php?customer=my_listings', _BUTTON_BACK));
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objListingsCategories->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objListingsCategories->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objListingsCategories->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objListingsCategories->DrawDetailsMode($rid);
             }
コード例 #5
0
                     } else {
                         if ($action == 'cancel_add') {
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_PAYMENTS => '', _ADVERTISE_PLANS => '', ucfirst($action) => '')));
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objAdvertisePlans->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objAdvertisePlans->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objAdvertisePlans->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objAdvertisePlans->DrawDetailsMode($rid);
             }
コード例 #6
0
*/
// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
if ($objLogin->IsLoggedInAs('owner') && Modules::IsModuleInstalled('backup')) {
    $submition_type = isset($_POST['submition_type']) ? prepare_input($_POST['submition_type']) : '';
    $backup_file = isset($_POST['backup_file']) ? prepare_input($_POST['backup_file']) : '';
    $st = isset($_GET['st']) ? prepare_input($_GET['st']) : '';
    $fname = isset($_GET['fname']) ? prepare_input($_GET['fname']) : '';
    $msg = '';
    $objBackup = new Backup();
    if ($st == 'restore') {
        // restore previouse backup
        if ($objBackup->RestoreBackup($fname)) {
            $msg = draw_success_message(str_replace('_FILE_NAME_', $fname, _BACKUP_WAS_RESTORED), false);
        } else {
            $msg = draw_important_message($objBackup->error, false);
        }
    } else {
        $msg = draw_message(_BACKUP_RESTORE_NOTE, false);
    }
    // draw title bar and message
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _BACKUP => '', _BACKUP_RESTORE => '')), prepare_permanent_link('index.php?admin=mod_backup_installation', _BACKUP_INSTALLATION));
    echo $msg;
    draw_content_start();
    $objBackup->DrawRestoreForm();
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
コード例 #7
0
                                         $msg = draw_success_message(_EMAIL_SUCCESSFULLY_SENT, false);
                                     } else {
                                         $msg = draw_important_message(Customers::GetStaticError(), false);
                                     }
                                     $mode = 'view';
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_ACCOUNTS => '', _CUSTOMERS_MANAGEMENT => '', _CUSTOMERS => '', ucfirst($action) => '')));
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objCustomers->DrawOperationLinks(prepare_permanent_link('index.php?admin=mod_customers_groups', '[ ' . _CUSTOMER_GROUPS . ' ]'));
     $objCustomers->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objCustomers->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objCustomers->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objCustomers->DrawDetailsMode($rid);
コード例 #8
0
/**
* @project ApPHP Business Directory
* @copyright (c) 2011 ApPHP
* @author ApPHP <*****@*****.**>
* @license http://www.gnu.org/licenses/
*/
// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
if (!$objLogin->IsLoggedIn() && ModulesSettings::Get('customers', 'allow_registration') == 'yes') {
    draw_title_bar(_REGISTRATION_CONFIRMATION);
    echo $msg;
    echo '<div class="pages_contents">';
    if (!$confirmed) {
        echo '<br />
		<form action="index.php?customer=confirm_registration" method="post" name="frmConfirmCode" id="frmConfirmCode">
			' . draw_token_field(false) . '
			' . draw_hidden_field('task', 'post_submission', false) . '
		
			' . _ENTER_CONFIRMATION_CODE . ':			
			<input type="text" name="c" id="c" value="" size="27" maxlength="25" /><br /><br />
			<input class="form_button" type="submit" name="btnSubmit" id="btnSubmit" value="Submit">						
		</form>
		<script type="text/javascript">appSetFocus("c")</script>';
    }
    echo '</div>';
} else {
    draw_title_bar(prepare_breadcrumbs(array(_CUSTOMER => '', _REGISTRATION_CONFIRMATION => '')));
    draw_important_message(_NOT_AUTHORIZED);
}
コード例 #9
0
ファイル: ban_list.php プロジェクト: mozdial/Directory
                     } else {
                         if ($action == 'cancel_add') {
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_GENERAL => '', _BAN_LIST => '', ucfirst($action) => '')));
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objBanList->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objBanList->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objBanList->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objBanList->DrawDetailsMode($rid);
             }
コード例 #10
0
    } else {
        if (!$password_sent) {
            $objAdmin = new Admins($objSession->GetSessionVariable('session_account_id'));
            if ($objAdmin->SendPassword($email)) {
                $msg = draw_success_message(_PASSWORD_SUCCESSFULLY_SENT, false);
                Session::Set('password_sent', true);
            } else {
                $msg = draw_important_message($objAdmin->error, false);
            }
        } else {
            $msg = draw_message(_PASSWORD_ALREADY_SENT, false);
        }
    }
}
// Draw title bar
draw_title_bar(prepare_breadcrumbs(array(_ADMIN => '', _PASSWORD_FORGOTTEN => '')));
// Check if user is logged in
if (!$objLogin->IsLoggedIn()) {
    echo $msg;
    ?>
	<div class="pages_contents">
	<form action="index.php?admin=password_forgotten" method="post">
		<?php 
    draw_hidden_field('act', 'send');
    ?>
		<?php 
    draw_token_field();
    ?>
		
		<table class="loginForm" width="99%" border="0">
		<tr>
コード例 #11
0
ファイル: statistics.php プロジェクト: mozdial/Directory
    ## | 2. Customizing:                                                           |
    ## +---------------------------------------------------------------------------+
    ## *** set container's width in pixels (px), inches (in) or points (pt)
    $tabs->SetWidth('696px');
    ## *** set container's height in pixels (px), inches (in) or points (pt)
    $tabs->SetHeight('auto');
    // 'auto'
    ## *** set alignment inside the container (left, center or right)
    $tabs->SetAlign('left');
    ## *** set container's color in RGB format or using standard names
    /// $tabs->SetContainerColor('#64C864');
    ## *** set border's width in pixels (px), inches (in) or points (pt)
    /// $tabs->SetBorderWidth('5px');
    ## *** set border's color in RGB format or using standard names
    /// $tabs->SetBorderColor('#64C864');
    /// $tabs->SetBorderColor('blue');
    /// $tabs->SetBorderColor('#445566');
    ## *** show debug info - false|true
    $tabs->Debug(false);
    ## *** allow refresh selected tabs - false|true
    /// $tabs->AllowRefreshSelectedTabs(true);
    ## *** set form submission type: 'get' or 'post'
    $tabs->SetSubmissionType('post');
    draw_title_bar(prepare_breadcrumbs(array(_GENERAL => '', _STATISTICS => '')));
    draw_content_start();
    $tabs->Display();
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
コード例 #12
0
                }
            }
        }
        // Start main content
        draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _FAQ => '', _FAQ_MANAGEMENT => '', $faq_info['name'] => '', ucfirst($action) => '')), prepare_permanent_link('index.php?admin=mod_faq_management', _BUTTON_BACK));
        echo $msg;
        draw_content_start();
        if ($mode == 'view') {
            $objFaqCategoryItems->DrawViewMode();
        } else {
            if ($mode == 'add') {
                $objFaqCategoryItems->DrawAddMode();
            } else {
                if ($mode == 'edit') {
                    $objFaqCategoryItems->DrawEditMode($rid);
                } else {
                    if ($mode == 'details') {
                        $objFaqCategoryItems->DrawDetailsMode($rid);
                    }
                }
            }
        }
        draw_content_end();
    } else {
        draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _FAQ_MANAGEMENT => '', _QUESTIONS => '')), prepare_permanent_link('index.php?admin=mod_faq_management', _BUTTON_BACK));
        draw_important_message(_WRONG_PARAMETER_PASSED);
    }
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
コード例 #13
0
                     } else {
                         if ($action == 'cancel_add') {
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_LISTINGS_MANAGEMENT => '', _LISTINGS => '', $listing_info_name => '', _CATEGORIES => '', ucfirst($action) => '')), prepare_permanent_link('index.php?admin=mod_listings_management', _BUTTON_BACK));
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objListingsCategories->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objListingsCategories->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objListingsCategories->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objListingsCategories->DrawDetailsMode($rid);
             }
コード例 #14
0
ファイル: inquiries_reply.php プロジェクト: mozdial/Directory
                }
            }
        }
        // Start main content
        draw_title_bar(prepare_breadcrumbs(array(_MY_ACCOUNT => '', _INQUIRIES => '', 'ID:' . $inq_id => '', _INQUIRIES_REPLIES => '', ucfirst($action) => '')), prepare_permanent_link('index.php?customer=inquiries', _BUTTON_BACK));
        echo $msg;
        draw_content_start();
        if ($mode == 'view') {
            $objInquiriesReplies->DrawViewMode();
        } else {
            if ($mode == 'add') {
                $objInquiriesReplies->DrawAddMode(array('cancel' => false));
            } else {
                if ($mode == 'edit') {
                    $objInquiriesReplies->DrawEditMode($rid);
                } else {
                    if ($mode == 'details') {
                        $objInquiriesReplies->DrawDetailsMode($rid);
                    }
                }
            }
        }
        draw_content_end();
    } else {
        draw_title_bar(prepare_breadcrumbs(array(_MY_ACCOUNT => '', _INQUIRIES => '', _INQUIRIES_REPLIES => '')));
        draw_important_message(_WRONG_PARAMETER_PASSED);
    }
} else {
    draw_title_bar(_CUSTOMER);
    draw_important_message(_NOT_AUTHORIZED);
}
コード例 #15
0
            }
        }
        // Start main content
        draw_title_bar(prepare_breadcrumbs(array(_ACCOUNTS => '', $role_info_name => '', _PRIVILEGES_MANAGEMENT => '', ucfirst($action) => '')), prepare_permanent_link('index.php?admin=roles_management', _BUTTON_BACK));
        //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
        echo $msg;
        draw_content_start();
        if ($mode == 'view') {
            $objRolePrivileges->DrawViewMode();
        } else {
            if ($mode == 'add') {
                $objRolePrivileges->DrawAddMode();
            } else {
                if ($mode == 'edit') {
                    $objRolePrivileges->DrawEditMode($rid);
                } else {
                    if ($mode == 'details') {
                        $objRolePrivileges->DrawDetailsMode($rid);
                    }
                }
            }
        }
        draw_content_end();
    } else {
        draw_title_bar(prepare_breadcrumbs(array(_ACCOUNTS => '', _PRIVILEGES_MANAGEMENT => '')));
        draw_important_message(_WRONG_PARAMETER_PASSED);
    }
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}
コード例 #16
0
                     } else {
                         if ($action == 'cancel_add') {
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_LISTINGS_MANAGEMENT => '', _SETTINGS => '', _LOCATIONS => '', ucfirst($action) => '')));
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objListingsLocations->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objListingsLocations->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objListingsLocations->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objListingsLocations->DrawDetailsMode($rid);
             }
コード例 #17
0
ファイル: login.php プロジェクト: mozdial/Directory
<?php

/**
* @project ApPHP Business Directory
* @copyright (c) 2011 ApPHP
* @author ApPHP <*****@*****.**>
* @license http://www.gnu.org/licenses/
*/
// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
// Draw title bar
draw_title_bar(prepare_breadcrumbs(array(_ACCOUNTS => '', _ADMIN_LOGIN => '')));
// Check if admin is logged in
if (!$objLogin->IsLoggedIn()) {
    if ($objLogin->IsWrongLogin()) {
        draw_important_message($objLogin->GetLoginError());
    }
    ?>
	<div class="pages_contents">
	<form action="index.php?admin=login" method="post">
		<?php 
    draw_hidden_field('submit_login', 'login');
    ?>
		<?php 
    draw_hidden_field('type', 'admin');
    ?>
		<?php 
    draw_token_field();
    ?>
		
コード例 #18
0
ファイル: create_account.php プロジェクト: mozdial/Directory
			<tr><td colspan="2">&nbsp;</td></tr>
			
			<tr>
			<td colspan="3" align="<?php 
        echo Application::Get('defined_left');
        ?>
">
				<p><?php 
        echo _CREATE_ACCOUNT_NOTE;
        ?>
</p>
			</td>
			</tr>
			
			</table>
		</form>
	</div>	

	<script type="text/javascript">
		appSetFocus('<?php 
        echo $focus_field;
        ?>
');
	</script>
	
<?php 
    }
} else {
    draw_title_bar(prepare_breadcrumbs(array(_CUSTOMER => '', _CREATING_NEW_ACCOUNT => '')));
    draw_important_message(_NOT_AUTHORIZED);
}
コード例 #19
0
                     } else {
                         if ($action == 'cancel_add') {
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _NEWS => '', _SUBSCRIPTION_MANAGEMENT => '', ucfirst($action) => '')));
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objNewsSubscribed->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objNewsSubscribed->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objNewsSubscribed->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objNewsSubscribed->DrawDetailsMode($rid);
             }
         }
コード例 #20
0
                     } else {
                         if ($action == 'cancel_add') {
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_PAYMENTS => '', _CURRENCIES_MANAGEMENT => '', ucfirst($action) => '')));
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 if ($mode == 'view' && $msg == '') {
     $msg = draw_message(_CURRENCIES_DEFAULT_ALERT, false);
 }
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objCurrencies->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objCurrencies->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objCurrencies->DrawEditMode($rid);
         } else {
コード例 #21
0
 $msg_text = isset($ccErrors[$msg]) ? $ccErrors[$msg] : '';
 if ($payment_type == 'paypal') {
     $title_desc = _PAYPAL_ORDER;
 } else {
     if ($payment_type == '2co') {
         $title_desc = _2CO_ORDER;
     } else {
         if ($payment_type == 'authorize') {
             $title_desc = _AUTHORIZE_NET_ORDER;
         } else {
             $title_desc = _ONLINE_ORDER;
         }
     }
 }
 if (Modules::IsModuleInstalled('payments') && ModulesSettings::Get('payments', 'is_active') == 'yes') {
     draw_title_bar(prepare_breadcrumbs(array(_MY_ACCOUNT => '', _ADVERTISE => '', $title_desc => '')), prepare_permanent_link('index.php?customer=advertise', _BUTTON_BACK));
     // test mode alert
     if (ModulesSettings::Get('payments', 'mode') == 'TEST MODE') {
         draw_message(_TEST_MODE_ALERT_SHORT, true, true);
     }
     if ($task == "do_order") {
         if (AdvertisePlans::DoOrder($payment_type)) {
             AdvertisePlans::DrawPrepayment();
         } else {
             draw_important_message(AdvertisePlans::$message);
         }
     } else {
         if ($task == "repeat_order") {
             draw_important_message($msg_text);
             AdvertisePlans::ReDrawPrepayment();
         } else {
コード例 #22
0
                     } else {
                         if ($action == 'cancel_add') {
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _CONTACT_US => '', _CONTACT_US_SETTINGS => '', ucfirst($action) => '')));
 echo '<br />';
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objContactSettings->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objContactSettings->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objContactSettings->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objContactSettings->DrawDetailsMode($rid);
コード例 #23
0
ファイル: listings.php プロジェクト: mozdial/Directory
/**
* @project ApPHP Business Directory
* @copyright (c) 2011 ApPHP
* @author ApPHP <*****@*****.**>
* @license http://www.gnu.org/licenses/
*/
// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
$listing_type = Application::Get('type');
$listing_type_title = '';
if ($listing_type == 'featured') {
    $listing_type_title = _FEATURED_LISTINGS;
} else {
    if ($listing_type == 'recent') {
        $listing_type_title = _RECENT_LISTINGS;
    }
}
draw_title_bar(prepare_breadcrumbs(array(_LISTINGS => '', $listing_type_title => '')));
if (!empty($listing_type_title)) {
    if ($listing_type == 'featured') {
        Listings::DrawFeaturedAll();
    } else {
        if ($listing_type == 'recent') {
            Listings::DrawRecentAll();
        }
    }
} else {
    draw_important_message(_PAGE_UNKNOWN);
}
コード例 #24
0
ファイル: category.php プロジェクト: mozdial/Directory
<?php

/**
* @project ApPHP Business Directory
* @copyright (c) 2011 ApPHP
* @author ApPHP <*****@*****.**>
* @license http://www.gnu.org/licenses/
*/
// *** Make sure the file isn't accessed directly
defined('APPHP_EXEC') or die('Restricted Access');
//--------------------------------------------------------------------------
$objCategory = Categories::Instance();
$objListings = Listings::Instance();
$category_info = $objCategory->GetLevelsInfo(Application::Get('category_id'));
$button = '';
if (Modules::IsModuleInstalled('inquiries')) {
    $listings_locations = isset($_REQUEST['listings_locations']) ? (int) $_REQUEST['listings_locations'] : '';
    $listings_sub_locations = isset($_REQUEST['listings_sub_locations']) ? (int) $_REQUEST['listings_sub_locations'] : '';
    if (!empty($category_info['first']['id'])) {
        $button = '<input type="button" class="form_button" value="' . _SUBMIT_INQUIRY . '" onclick="appGoToPage(\'index.php?page=inquiry_form\',\'&inquiry_category=' . $category_info['first']['id'] . '&visitor_locations=' . $listings_locations . '&visitor_sub_locations=' . $listings_sub_locations . '\',\'post\')">';
    }
}
draw_title_bar(prepare_breadcrumbs(array(_CATEGORIES => prepare_link('categories', '', '', 'all', _SEE_ALL, '', '', true), $category_info['third']['name'] => $category_info['third']['link'], $category_info['second']['name'] => $category_info['second']['link'], $category_info['first']['name'] => '')), $button);
$objCategory->DrawSubCategories(Application::Get('category_id'), 'listings');
$objListings->DrawListings(Application::Get('category_id'));
コード例 #25
0
ファイル: languages.php プロジェクト: mozdial/Directory
                     } else {
                         if ($action == 'cancel_add') {
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_LANGUAGES_SETTINGS => '', _LANGUAGES => '', ucfirst($action) => '')));
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objLanguages->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objLanguages->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objLanguages->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objLanguages->DrawDetailsMode($rid);
             }
         }
コード例 #26
0
ファイル: pages_trash.php プロジェクト: mozdial/Directory
        }
        // do restore action
    } else {
        if ($act == 'restore' && $objLogin->HasPrivileges('edit_pages')) {
            if ($objPage->PageRestore()) {
                $msg = draw_success_message(_PAGE_RESTORED, false);
            } else {
                $msg = draw_important_message($objPage->error, false);
            }
        }
    }
    // start main content
    $all_pages = array();
    $all_pages = Pages::GetAll($language_id, 'removed');
    $total_languages = Languages::GetAllActive();
    draw_title_bar(prepare_breadcrumbs(array(_MENUS_AND_PAGES => '', _PAGE_MANAGEMENT => '', _TRASH_PAGES => '')));
    if ($objSession->IsMessage('notice')) {
        echo $objSession->GetMessage('notice');
    }
    echo $msg;
    ?>
	<script type="text/javascript">
	<!--
		function confirmDelete(pid){
			if(!confirm('<?php 
    echo _PAGE_DELETE_WARNING;
    ?>
')){
				return false;
			}else{
				appGoTo('admin=pages_trash&act=delete&language_id=<?php 
コード例 #27
0
ファイル: my_listings.php プロジェクト: mozdial/Directory
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 if ($mode == 'view' || $mode == 'add') {
     $objLogin->LoadListings();
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_MY_ACCOUNT => '', _LISTINGS_MANAGEMENT => '', ucfirst($action) => '')));
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 if (!empty($msg)) {
     echo $msg;
 } else {
     if (Modules::IsModuleInstalled('payments') && ModulesSettings::Get('payments', 'is_active') == 'yes') {
         draw_message(str_replace('_LISTINGS_COUNT_', $objLogin->GetAvailableListings(), _AVAILABLE_LISTINGS_ALERT));
     }
 }
 //draw_content_start();
 echo '<div class="pages_contents">';
 if ($mode == 'view') {
     $objListings->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objListings->DrawAddMode();
コード例 #28
0
                     } else {
                         if ($action == 'cancel_add') {
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _BANNERS => '', _BANNERS_SETTINGS => '', ucfirst($action) => '')));
 echo '<br />';
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objBanners->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objBanners->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objBanners->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objBanners->DrawDetailsMode($rid);
コード例 #29
0
                     } else {
                         if ($action == 'cancel_add') {
                             $mode = 'view';
                         } else {
                             if ($action == 'cancel_edit') {
                                 $mode = 'view';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 // Start main content
 draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _GALLERY => '', _GALLERY_SETTINGS => '', ucfirst($action) => '')));
 echo '<br />';
 //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
 echo $msg;
 draw_content_start();
 if ($mode == 'view') {
     $objGallery->DrawViewMode();
 } else {
     if ($mode == 'add') {
         $objGallery->DrawAddMode();
     } else {
         if ($mode == 'edit') {
             $objGallery->DrawEditMode($rid);
         } else {
             if ($mode == 'details') {
                 $objGallery->DrawDetailsMode($rid);
コード例 #30
0
                            }
                        }
                    }
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _COMMENTS => '', _COMMENTS_MANAGEMENT => '', $page_name ? $page_name : '' => '', ucfirst($action) => '')));
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objComments->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objComments->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objComments->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objComments->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _COMMENTS_MANAGEMENT => '')));
    draw_important_message(_NOT_AUTHORIZED);
}