Server IP : 162.241.126.129 / Your IP : 3.21.244.34 Web Server : Apache System : Linux 162-241-126-129.cprapid.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64 User : rvway5nu4 ( 1018) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/rvway5nu4/www/phplib/ |
Upload File : |
<?php // All System Constants (Not to be edited) must be defind here. define("LINEFEED", "\r\n"); define("LINK_DIV", " » "); define("LINK_DIV_FRONT", "<img src='/images/breadcrumbArrow.gif' alt='' hspace='9' align='absmiddle' class='orangeBulletbreadcrumb'>"); //Type of Admin Users global $WarrantyArray, $DeliveryArray, $PaymentArray, $TradeArray, $PriceArray ; $rv_array = array(0 =>'new_rv', 1=>'used_rv', 2 =>'cus_rv', 3=>'rent_rv', 4=>'repair_rv', 5=>'sale_rv', 6=>'sparepart_rv'); $rv_key_array = array( 'new_rv' =>'new_rv_select', 'used_rv'=>'used_rv_select', 'cus_rv'=>'customized_rv_select', 'rent_rv'=>'rent_rv_select', 'repair_rv'=>'repair_rv_select', 'sale_rv' => 'sale_rv_select','sparepart_rv' => 'sparepart_rv_select'); $rv_type_array = array( 'new_rv' =>'New RV', 'used_rv'=>'Used RV', 'cus_rv'=>'Customized RV', 'rent_rv'=>'Rent RV', 'repair_rv'=>'Repair RV', 'sale_rv' => 'Sale RV', 'sparepart_rv' => 'Spare Part RV'); define("GENERAL","G"); define("PREMIUM", "P"); $ARR_USERS = array( GENERAL => 'General', PREMIUM => 'Premium' ); $ARR_USERS_INDEX = array( 'G' => 'General', 'P' => 'PREMIUM' ); //Flag Type define("FLAG_YES", "Y"); define("FLAG_NO", "N"); $ARR_FLAGS = array ( FLAG_YES => 'Yes', FLAG_NO => 'No' ); //Flag Type define("VIEW_STATUS_NEW", "N"); define("VIEW_STATUS_READ", "O"); define("VIEW_STATUS_REPLY", "R"); define("VIEW_STATUS_ACTIVE", "A"); define("VIEW_STATUS_DEACTIVE", "D"); define("VIEW_SORTED_LIST", "S"); $ARR_VIEW_STATUS = array ( VIEW_STATUS_NEW => 'New', VIEW_STATUS_READ => 'Read', VIEW_STATUS_REPLY => 'Reply', VIEW_STATUS_ACTIVE => 'Active', VIEW_STATUS_DEACTIVE => 'Deactive', VIEW_SORTED_LIST => 'Sort Listed' ); //Type of Status define("STATUS_LIVE", "L"); define("STATUS_PENDING", "P"); define("STATUS_SUSPENDED", "S"); define("STATUS_HOLD", "H"); define("STATUS_UNVERIFIED", "U"); define("STATUS_PUBLISH", "B"); define("STATUS_UNPUBLISHD", "I"); define("STATUS_DRAFT", "D"); /* $ARR_STATUS = array( STATUS_LIVE => 'Live', STATUS_SUSPENDED => 'Suspended', STATUS_PENDING => 'Pending', STATUS_HOLD => 'Hold', STATUS_UNVERIFIED => 'Unverified', STATUS_PUBLISH => 'Publish', STATUS_UNPUBLISHD => 'Unpublish', STATUS_DRAFT => 'Draft' ); */ $ARR_STATUS = array( 0 => 'Inactive', 1 => 'Active', 2 => 'Inactive', 3 => 'Deleted' ); //Type of Status define("STATUS_ACTIVE_INT", "1"); define("STATUS_INACTIVE_INT", "0"); $ARR_ACT_STATUS = array( STATUS_ACTIVE_INT => 'Active', STATUS_INACTIVE_INT => 'Inactive' ); define("NOTIFY_STATUS_ACTIVE", "A"); define("NOTIFY_STATUS_DEACTIVE", "D"); define("NOTIFY_STATUS_OPEN", "O"); define("NOTIFY_STATUS_CLOSE", "C"); define("NOTIFY_STATUS_SORTED", "S"); $ARR_NOTIFY_STATUS = array( NOTIFY_STATUS_ACTIVE => 'Active', NOTIFY_STATUS_DEACTIVE => 'Deactive', NOTIFY_STATUS_OPEN => 'Open', NOTIFY_STATUS_CLOSE => 'Final', NOTIFY_STATUS_SORTED => 'Sorted' ); $ARR_PRO_NOTIFY_STATUS = array( 'A' => 'Active', 'C' => 'Closed', 'S' => 'Short listed', 'D' => 'Stop', 'P' => 'P.O.', 'O' => 'Proposal.', 'L' => 'Live' ); $RENT_ARR_STATUS = array( 'P' => 'Pending', 'A' => 'Approve', 'R' => 'Remove' ); //Global Toggles define ("TAG_YES", "Y"); define ("TAG_NO", "N"); define ("DATE_FORMAT_MYSQL", "Y-m-d"); define ("DATE_FORMAT_wizard", "d/m/Y"); define ("DATE_FORMAT_wizard_FANCY_TIME", "d/m/Y g:i a"); define ("DATETIME_FORMAT_MYSQL", "Y-m-d H:i:s"); define("DATETIME_FORMAT", "d/m/Y H:i"); define("DATE_FORMAT", "d/m/Y"); define("DATE_FORMAT_FANCY", "M j, Y"); define ("DATE_FANCY", "jS M, Y"); define ("DATE_TIME_FANCY", "jS M, Y, g:i a"); define("DATE_FORMAT_FANCY_TIME", "M j, Y g:i"); define("TIME_FORMAT", "H:i"); define("TIME_FORMAT_SLOT", "g:i a"); $PLAIN_DATE_FORMAT = "mm-dd-yyyy"; $PLAIN_DATE_FORMAT_JQ = "mm-dd-yy"; $DATE_SEPARATOR = "-"; //Application Modules define("MODULE_SITE_GLOBAL", "SG"); define("MODULE_TESTIMONIAL", "TM"); define("MODULE_GALLERY", "CL"); define("MODULE_MAILING_LIST", "ML"); define("MODULE_NEWS", "NW"); define("MODULE_ADV", "Ad"); $ARR_APP_MODULES = Array( MODULE_SITE_GLOBAL => "Global Parameters", MODULE_TESTIMONIAL => "Testimonial", MODULE_MAILING_LIST => "Mailing List", MODULE_GALLERY => "Product Catalog" ); // Reference File --- admin/members/appointments/book/vacantTimeSlote.php, admin/appointments/timeslots/index.php, if($HOST_NAME == "troywinterflood.din.com" ){ define("Sec_time_diff",0); }else { define("Sec_time_diff", 32400); } //Type product piece form $ARR_PRODUCT_TYPE = array( GENERAL => 'General', PREMIUM => 'Premium' ); //Type product piece form define("INSTOCK", "I"); define("OUTSTOCK", "O"); $ARR_STOCKT_STATUS = array( INSTOCK => 'In Stock', OUTSTOCK => 'Out Stock' ); define("MALE", "M"); define("FEMALE", "F"); define("UNISEX", "U"); $ARR_GENDER = array( MALE => 'Male', FEMALE => 'Female', UNISEX => 'Unisex' ); //Indentification Type define("PASSPORT_INDENTITY", "P"); define("IDCARD_INDENTITY", "I"); define("OTHER_INDENTITY", "O"); $ARR_INDENTITY_TYPE = array( PASSPORT_INDENTITY => 'Passport', IDCARD_INDENTITY => 'Idicard', OTHER_INDENTITY => 'Other' ); define("MR", "MR"); define("MISTER", "MI"); define("MASTER", "MA"); define("MS", "MS"); define("DOCTOR", "DR"); $ARR_TITLE = array( MR => 'Mr', MASTER => 'Mrs', MS => 'Miss' ); //Type of Admin Users define("SILVER_CLUB", 1); define("GOLD_CLUB", 2); define("DIAMOND_CLUB",3); define("JUBLY_CLUB", 4); $ARR_ACCESS_LEVEL = array( SILVER_CLUB => 'Silver Club', GOLD_CLUB => 'Gold Club', DIAMOND_CLUB => 'Diamond Club', JUBLY_CLUB => 'Jubly Club' ); //Type of Admin Users define("REDEEM_OPTION_Y", 'Y'); define("REDEEM_OPTION_N", 'N'); $ARR_REDEEM_OPTION = array( REDEEM_OPTION_Y => 'Yes', REDEEM_OPTION_N => 'No' ); define("BOTTLE_STATUS_NEW", 'N'); define("BOTTLE_STATUS_USED", 'U'); define("BOTTLE_STATUS_REPLACE", 'R'); define("BOTTLE_STATUS_OLD", 'O'); $ARR_BOTTLE_STATUS = array( BOTTLE_STATUS_NEW => 'New', BOTTLE_STATUS_USED => 'Used', BOTTLE_STATUS_REPLACE => 'Replaced', BOTTLE_STATUS_OLD => 'Oid' ); $payment_status_array = array(1=>'Pending',2=>'Approved',3=>'Rejected ' ); global $header_acc, $memInfo; if ( isset( $_SESSION["SESS_B_v_memberLoggedIn"] ) OR (isset( $_SESSION["SESS_V_v_memberLoggedIn"] ) ) OR ( isset( $_SESSION["SESS_v_memberLoggedIn"] )) ) { if( $_SESSION["SESS_B_v_memberLoggedIn"] ){ $header_acc = '<a>Account <i class="fa fa-caret-down"></i></a> <ul class="sub-menu"> <li><a href="'.$SITE_URL.'/buyer/user/info.php">Info</a></li> <li><a href="'.$SITE_URL.'/buyer/user/profile.php">Profile</a></li> <li><a href="'.$SITE_URL.'/buyer/user/forgotpassword.php">Change Password</a></li> <li><a href="'.$SITE_URL.'/logout.php">Logout</a></li> </ul>'; $memInfo = 'Welcome : '. $_SESSION['SESS_B_v_memberName'] .' ↑ <span style="font-size:13px;" > Buyer </span> ↑ <span style="font-size:13px;" > '.$_SESSION['SESS_B_v_companyID'].' </span> ↑ '; }else if( $_SESSION["SESS_V_v_memberLoggedIn"]) { $header_acc = '<a >Account <i class="fa fa-caret-down"></i></a> <ul class="sub-menu"> <li><a href="'.$SITE_URL.'/vendor/member/info.php">Info</a></li> <li><a href="'.$SITE_URL.'/vendor/member/profile.php">Profile</a></li> <li><a href="'.$SITE_URL.'/vendor/member/forgotpassword.php">Change Password</a></li> <li><a href="'.$SITE_URL.'/logout.php">Logout</a></li> </ul>'; $memInfo = 'Welcome : '. $_SESSION['SESS_V_v_memberName'] .' ↑ <span style="font-size:13px;" > Vendor </span> ↑ <span style="font-size:13px;" > '.$_SESSION['SESS_V_v_companyID'].' </span> ↑ '; }else if( $_SESSION["SESS_v_memberLoggedIn"]){ $header_acc = '<a >Account <i class="fa fa-caret-down"></i></a> <ul class="sub-menu"> <li><a href="'.$SITE_URL.'/admin/information/addon.php">Info</a></li> <li><a href="'.$SITE_URL.'/logout.php">Logout</a></li> </ul>'; $memInfo = 'Welcome : '. $_SESSION['SESS_v_memberName'] .' ↑ <span style="font-size:13px;" > Admin </span> ↑ '; } }else{ $header_acc = '<a >Account <i class="fa fa-caret-down"></i></a> <ul class="sub-menu"> <li><a href="'.$SITE_URL.'/login.php">Login</a></li> <li><a href="'.$SITE_URL.'/bregister.php?prmt=y">Buyer Register</a></li> <li><a href="'.$SITE_URL.'/vregister.php?prmt=y">Vendor Register</a></li> </ul>'; // $memInfo = '<a href="'.$MAP_VROOT_PATH.'/bregister.php?prmt=y" >Want to Buy</a> | <a href="'.$MAP_VROOT_PATH.'/vregister.php?prmt=y" >Want to Sell</a>'; $memInfo = ''; } ?>