@@ -85,18 +85,18 @@ |
||
85 | 85 | |
86 | 86 | function checkDuplicateTrx($txn_id='0', $payment_status='0') { |
87 | 87 | global $xoopsDB; |
88 | - $block = array(); |
|
88 | + $block = array(); |
|
89 | 89 | $myts =& MyTextSanitizer::getInstance(); |
90 | 90 | $userid = 0; |
91 | 91 | $sql = "SELECT txn_id, payment_status FROM ".$xoopsDB->prefix("efqdiralpha1_subscr_payments")." WHERE txn_id='$txn_id' AND payment_status='$payment_status'"; |
92 | - $result = $xoopsDB->query($sql); |
|
93 | - $num_results = $xoopsDB->getRowsNum($result); |
|
94 | - if (!$result) { |
|
95 | - return true; |
|
96 | - } else if ( $num_results == 0 ) { |
|
97 | - return true; |
|
98 | - } else { |
|
99 | - return false; |
|
100 | - } |
|
92 | + $result = $xoopsDB->query($sql); |
|
93 | + $num_results = $xoopsDB->getRowsNum($result); |
|
94 | + if (!$result) { |
|
95 | + return true; |
|
96 | + } else if ( $num_results == 0 ) { |
|
97 | + return true; |
|
98 | + } else { |
|
99 | + return false; |
|
100 | + } |
|
101 | 101 | } |
102 | 102 | ?> |
103 | 103 | \ No newline at end of file |
@@ -44,23 +44,23 @@ |
||
44 | 44 | $date = getdate($current_billto); |
45 | 45 | |
46 | 46 | switch($duration) { |
47 | - case '1': |
|
48 | - $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday']+ (1 * $count), $date['year'] ); |
|
49 | - break; |
|
50 | - case '2': |
|
51 | - $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday']+ (7 * $count), $date['year'] ); |
|
52 | - break; |
|
53 | - case '3': |
|
54 | - $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'] + (1 * $count), $date['mday'], $date['year'] ); |
|
55 | - break; |
|
56 | - case '4': |
|
57 | - $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'] + (3 * $count), $date['mday'], $date['year'] ); |
|
58 | - break; |
|
59 | - case '5': |
|
60 | - $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday'], $date['year'] + (1 * $count) ); |
|
61 | - break; |
|
62 | - default: |
|
63 | - $billto = ''; |
|
47 | + case '1': |
|
48 | + $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday']+ (1 * $count), $date['year'] ); |
|
49 | + break; |
|
50 | + case '2': |
|
51 | + $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday']+ (7 * $count), $date['year'] ); |
|
52 | + break; |
|
53 | + case '3': |
|
54 | + $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'] + (1 * $count), $date['mday'], $date['year'] ); |
|
55 | + break; |
|
56 | + case '4': |
|
57 | + $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'] + (3 * $count), $date['mday'], $date['year'] ); |
|
58 | + break; |
|
59 | + case '5': |
|
60 | + $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday'], $date['year'] + (1 * $count) ); |
|
61 | + break; |
|
62 | + default: |
|
63 | + $billto = ''; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | if ( $ordervalues['startdate'] < time() && $ordervalues[billto] == '' ) { |
@@ -14,13 +14,13 @@ discard block |
||
14 | 14 | //include file - not accessible directly |
15 | 15 | |
16 | 16 | |
17 | -if(isset($paypal['business'])) |
|
17 | +if (isset($paypal['business'])) |
|
18 | 18 | { |
19 | 19 | //log successful transaction to file or database |
20 | 20 | $now = time(); |
21 | 21 | $values = create_local_variables(); |
22 | 22 | $orderid = $values['item_number']; |
23 | - if ( checkDuplicateTrx( $values['txn_id'], $values['payment_status'] ) == true ) { |
|
23 | + if (checkDuplicateTrx($values['txn_id'], $values['payment_status']) == true) { |
|
24 | 24 | $newid = $xoopsDB->genId($xoopsDB->prefix("efqdiralpha1_subscr_payments")."_id_seq"); |
25 | 25 | $sql = "INSERT INTO ".$xoopsDB->prefix("efqdiralpha1_subscr_payments")." |
26 | 26 | (id, txn_id, txn_type, orderid, payer_business_name, address_name, address_street, address_city, address_state, address_zip, address_country, address_status, payer_email, payer_id, payer_status, mc_currency, mc_gross, mc_fee, created, payment_date, ref, payment_status) VALUES |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | $subscription = new efqSubscription(); |
35 | 35 | $ordervalues = $subscription->getOrderVars($orderid); |
36 | - if ( $ordervalues['billto'] == '' ) { |
|
36 | + if ($ordervalues['billto'] == '') { |
|
37 | 37 | $current_billto = $ordervalues['startdate']; |
38 | 38 | } else { |
39 | 39 | $current_billto = $ordervalues['billto']; |
@@ -43,37 +43,37 @@ discard block |
||
43 | 43 | $duration = $offervalues['duration']; |
44 | 44 | $date = getdate($current_billto); |
45 | 45 | |
46 | - switch($duration) { |
|
46 | + switch ($duration) { |
|
47 | 47 | case '1': |
48 | - $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday']+ (1 * $count), $date['year'] ); |
|
48 | + $billto = mktime($date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday'] + (1 * $count), $date['year']); |
|
49 | 49 | break; |
50 | 50 | case '2': |
51 | - $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday']+ (7 * $count), $date['year'] ); |
|
51 | + $billto = mktime($date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday'] + (7 * $count), $date['year']); |
|
52 | 52 | break; |
53 | 53 | case '3': |
54 | - $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'] + (1 * $count), $date['mday'], $date['year'] ); |
|
54 | + $billto = mktime($date['hours'], $date['minutes'], $date['seconds'], $date['mon'] + (1 * $count), $date['mday'], $date['year']); |
|
55 | 55 | break; |
56 | 56 | case '4': |
57 | - $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'] + (3 * $count), $date['mday'], $date['year'] ); |
|
57 | + $billto = mktime($date['hours'], $date['minutes'], $date['seconds'], $date['mon'] + (3 * $count), $date['mday'], $date['year']); |
|
58 | 58 | break; |
59 | 59 | case '5': |
60 | - $billto = mktime( $date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday'], $date['year'] + (1 * $count) ); |
|
60 | + $billto = mktime($date['hours'], $date['minutes'], $date['seconds'], $date['mon'], $date['mday'], $date['year'] + (1 * $count)); |
|
61 | 61 | break; |
62 | 62 | default: |
63 | 63 | $billto = ''; |
64 | 64 | } |
65 | 65 | |
66 | - if ( $ordervalues['startdate'] < time() && $ordervalues[billto] == '' ) { |
|
66 | + if ($ordervalues['startdate'] < time() && $ordervalues[billto] == '') { |
|
67 | 67 | $subscription->changeItemType($ordervalues[itemid], $ordervalues[typeid]); |
68 | - $subscription->updateOrder( $orderid, '1', time(), $billto ); |
|
68 | + $subscription->updateOrder($orderid, '1', time(), $billto); |
|
69 | 69 | } else { |
70 | - $subscription->updateOrder( $orderid, '1', $ordervalues['startdate'], $billto ); |
|
70 | + $subscription->updateOrder($orderid, '1', $ordervalues['startdate'], $billto); |
|
71 | 71 | } |
72 | - redirect_header("subscriptions.php?item=".$values['custom']."",5,_MD_ORDER_PROCESSED); |
|
72 | + redirect_header("subscriptions.php?item=".$values['custom']."", 5, _MD_ORDER_PROCESSED); |
|
73 | 73 | exit(); |
74 | 74 | |
75 | 75 | } else { |
76 | - redirect_header("subscriptions.php?item=".$values['custom']."",10,_MD_ORDER_ALREADY_PROCESSED); |
|
76 | + redirect_header("subscriptions.php?item=".$values['custom']."", 10, _MD_ORDER_ALREADY_PROCESSED); |
|
77 | 77 | exit(); |
78 | 78 | } |
79 | 79 | |
@@ -83,17 +83,17 @@ discard block |
||
83 | 83 | die('This page is not directly accessible'); |
84 | 84 | } |
85 | 85 | |
86 | -function checkDuplicateTrx($txn_id='0', $payment_status='0') { |
|
86 | +function checkDuplicateTrx($txn_id = '0', $payment_status = '0') { |
|
87 | 87 | global $xoopsDB; |
88 | 88 | $block = array(); |
89 | - $myts =& MyTextSanitizer::getInstance(); |
|
89 | + $myts = & MyTextSanitizer::getInstance(); |
|
90 | 90 | $userid = 0; |
91 | 91 | $sql = "SELECT txn_id, payment_status FROM ".$xoopsDB->prefix("efqdiralpha1_subscr_payments")." WHERE txn_id='$txn_id' AND payment_status='$payment_status'"; |
92 | 92 | $result = $xoopsDB->query($sql); |
93 | 93 | $num_results = $xoopsDB->getRowsNum($result); |
94 | 94 | if (!$result) { |
95 | 95 | return true; |
96 | - } else if ( $num_results == 0 ) { |
|
96 | + } else if ($num_results == 0) { |
|
97 | 97 | return true; |
98 | 98 | } else { |
99 | 99 | return false; |
@@ -77,8 +77,7 @@ |
||
77 | 77 | exit(); |
78 | 78 | } |
79 | 79 | |
80 | -} |
|
81 | -else |
|
80 | +} else |
|
82 | 81 | { |
83 | 82 | die('This page is not directly accessible'); |
84 | 83 | } |
@@ -59,15 +59,15 @@ discard block |
||
59 | 59 | // If the user is not logged in and anonymous postings are |
60 | 60 | // not allowed, redirect and exit. |
61 | 61 | if (empty($xoopsUser) and !$xoopsModuleConfig['anonpost']) { |
62 | - redirect_header(XOOPS_URL . "/user.php", 2, _MD_MUSTREGFIRST); |
|
63 | - exit(); |
|
62 | + redirect_header(XOOPS_URL . "/user.php", 2, _MD_MUSTREGFIRST); |
|
63 | + exit(); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | // Check if user has adminrights or not; |
67 | 67 | if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) { |
68 | - $isadmin = true; |
|
68 | + $isadmin = true; |
|
69 | 69 | } else { |
70 | - $isadmin = false; |
|
70 | + $isadmin = false; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | // Get the user ID; |
@@ -76,363 +76,363 @@ discard block |
||
76 | 76 | // If submit data was posted; |
77 | 77 | if (!empty($_POST['submit'])) { |
78 | 78 | |
79 | - if (!empty($_POST['itemid'])) { |
|
80 | - $gpc_itemid = intval($_POST['itemid']); |
|
81 | - } else { |
|
82 | - redirect_header("index.php", 2, _MD_NOVALIDITEM_IDMISSING); |
|
83 | - exit(); |
|
84 | - } |
|
85 | - if (isset($_POST['op'])) { |
|
86 | - $op = $_POST['op']; |
|
87 | - } else { |
|
88 | - $op = ""; |
|
89 | - } |
|
90 | - // If option is "submitforapproval", update status to 1; |
|
91 | - if ($op == 'submitforapproval') { |
|
92 | - if ($efqListingHandler->updateStatus($gpc_itemid, '1')) { |
|
93 | - redirect_header("index.php", 2, _MD_SUBMITTED_PUBLICATION); |
|
94 | - } else { |
|
95 | - redirect_header("index.php", 2, _MD_ERROR_NOT_SAVED); |
|
96 | - } |
|
97 | - exit(); |
|
98 | - } else |
|
99 | - if ($op == 'publish' and $isadmin and $xoopsModuleConfig['autoapproveadmin'] == |
|
100 | - 1) { |
|
101 | - // If option is "publish" and item is submitted by admin user while auto |
|
102 | - // approve listings submitted by admin user is turned on, update status to 2; |
|
103 | - if ($efqListingHandler->updateStatus($gpc_itemid, '2')) { |
|
104 | - redirect_header("index.php", 2, _MD_PUBLISHED); |
|
105 | - } else { |
|
106 | - redirect_header("index.php", 2, _MD_ERROR_NOT_SAVED); |
|
107 | - } |
|
108 | - exit(); |
|
109 | - } |
|
110 | - if (!empty($_POST['dirid'])) { |
|
111 | - $post_dirid = intval($_POST['dirid']); |
|
112 | - } else { |
|
113 | - $post_dirid = 0; |
|
114 | - } |
|
115 | - if (isset($_POST["itemtitle"])) { |
|
116 | - $gpc_title = $myts->makeTboxData4Save($_POST["itemtitle"]); |
|
117 | - $gpc_ini_title = $myts->makeTboxData4Save($_POST["ini_itemtitle"]); |
|
118 | - // Count number of upload files. |
|
119 | - $upload_files_count = count($_POST['xoops_upload_file']); |
|
120 | - $obj_listing = new efqListing(); |
|
121 | - $obj_listing_handler = new efqListingHandler(); |
|
122 | - $obj_listing->setListingVars($obj_listing_handler->getListing($gpc_itemid),"efqListing"); |
|
79 | + if (!empty($_POST['itemid'])) { |
|
80 | + $gpc_itemid = intval($_POST['itemid']); |
|
81 | + } else { |
|
82 | + redirect_header("index.php", 2, _MD_NOVALIDITEM_IDMISSING); |
|
83 | + exit(); |
|
84 | + } |
|
85 | + if (isset($_POST['op'])) { |
|
86 | + $op = $_POST['op']; |
|
87 | + } else { |
|
88 | + $op = ""; |
|
89 | + } |
|
90 | + // If option is "submitforapproval", update status to 1; |
|
91 | + if ($op == 'submitforapproval') { |
|
92 | + if ($efqListingHandler->updateStatus($gpc_itemid, '1')) { |
|
93 | + redirect_header("index.php", 2, _MD_SUBMITTED_PUBLICATION); |
|
94 | + } else { |
|
95 | + redirect_header("index.php", 2, _MD_ERROR_NOT_SAVED); |
|
96 | + } |
|
97 | + exit(); |
|
98 | + } else |
|
99 | + if ($op == 'publish' and $isadmin and $xoopsModuleConfig['autoapproveadmin'] == |
|
100 | + 1) { |
|
101 | + // If option is "publish" and item is submitted by admin user while auto |
|
102 | + // approve listings submitted by admin user is turned on, update status to 2; |
|
103 | + if ($efqListingHandler->updateStatus($gpc_itemid, '2')) { |
|
104 | + redirect_header("index.php", 2, _MD_PUBLISHED); |
|
105 | + } else { |
|
106 | + redirect_header("index.php", 2, _MD_ERROR_NOT_SAVED); |
|
107 | + } |
|
108 | + exit(); |
|
109 | + } |
|
110 | + if (!empty($_POST['dirid'])) { |
|
111 | + $post_dirid = intval($_POST['dirid']); |
|
112 | + } else { |
|
113 | + $post_dirid = 0; |
|
114 | + } |
|
115 | + if (isset($_POST["itemtitle"])) { |
|
116 | + $gpc_title = $myts->makeTboxData4Save($_POST["itemtitle"]); |
|
117 | + $gpc_ini_title = $myts->makeTboxData4Save($_POST["ini_itemtitle"]); |
|
118 | + // Count number of upload files. |
|
119 | + $upload_files_count = count($_POST['xoops_upload_file']); |
|
120 | + $obj_listing = new efqListing(); |
|
121 | + $obj_listing_handler = new efqListingHandler(); |
|
122 | + $obj_listing->setListingVars($obj_listing_handler->getListing($gpc_itemid),"efqListing"); |
|
123 | 123 | |
124 | 124 | if ($upload_files_count > 0) { |
125 | - include_once XOOPS_ROOT_PATH . '/class/uploader.php'; |
|
126 | - $uploader = new XoopsMediaUploader(XOOPS_ROOT_PATH . '/modules/' . $moddir . |
|
127 | - '/init_uploads', array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png', 'image/jpg'), 500000, 500, 500); |
|
128 | - $uploader->setPrefix('logo'); |
|
129 | - $err = array(); |
|
125 | + include_once XOOPS_ROOT_PATH . '/class/uploader.php'; |
|
126 | + $uploader = new XoopsMediaUploader(XOOPS_ROOT_PATH . '/modules/' . $moddir . |
|
127 | + '/init_uploads', array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png', 'image/jpg'), 500000, 500, 500); |
|
128 | + $uploader->setPrefix('logo'); |
|
129 | + $err = array(); |
|
130 | 130 | |
131 | - for ($i = 0; $i < $upload_files_count; $i++) { |
|
132 | - if ($_POST['xoops_upload_file'][$i] != "") { |
|
133 | - $medianame = $_POST['xoops_upload_file'][$i]; |
|
134 | - if ($uploader->fetchMedia($_POST['xoops_upload_file'][$i])) { |
|
135 | - if (!$uploader->upload()) { |
|
131 | + for ($i = 0; $i < $upload_files_count; $i++) { |
|
132 | + if ($_POST['xoops_upload_file'][$i] != "") { |
|
133 | + $medianame = $_POST['xoops_upload_file'][$i]; |
|
134 | + if ($uploader->fetchMedia($_POST['xoops_upload_file'][$i])) { |
|
135 | + if (!$uploader->upload()) { |
|
136 | 136 | $err[] = $uploader->getErrors(); |
137 | - } else { |
|
138 | - $savedfilename = $uploader->getSavedFileName(); |
|
139 | - echo 'upload succesful'; |
|
137 | + } else { |
|
138 | + $savedfilename = $uploader->getSavedFileName(); |
|
139 | + echo 'upload succesful'; |
|
140 | 140 | echo $savedfilename; |
141 | - //Rename the uploaded file to the same name in a different location that does not have 777 rights or 755. |
|
142 | - rename("".XOOPS_ROOT_PATH."/modules/".$moddir."/init_uploads/".$savedfilename."", "".XOOPS_ROOT_PATH."/modules/".$moddir."/uploads/".$savedfilename.""); |
|
143 | - //Delete the uploaded file from the initial upload folder if it is still present in that folder. |
|
144 | - if (file_exists("".XOOPS_ROOT_PATH."/modules/".$moddir."/init_uploads/".$savedfilename . "")) { |
|
145 | - unlink("".XOOPS_ROOT_PATH."/modules/".$moddir."/init_uploads/".$savedfilename.""); |
|
146 | - } |
|
147 | - } |
|
148 | - $obj_listing->setVar('logourl', $savedfilename); |
|
149 | - } else { |
|
150 | - echo 'fetch media failed.'; |
|
151 | - } |
|
141 | + //Rename the uploaded file to the same name in a different location that does not have 777 rights or 755. |
|
142 | + rename("".XOOPS_ROOT_PATH."/modules/".$moddir."/init_uploads/".$savedfilename."", "".XOOPS_ROOT_PATH."/modules/".$moddir."/uploads/".$savedfilename.""); |
|
143 | + //Delete the uploaded file from the initial upload folder if it is still present in that folder. |
|
144 | + if (file_exists("".XOOPS_ROOT_PATH."/modules/".$moddir."/init_uploads/".$savedfilename . "")) { |
|
145 | + unlink("".XOOPS_ROOT_PATH."/modules/".$moddir."/init_uploads/".$savedfilename.""); |
|
146 | + } |
|
147 | + } |
|
148 | + $obj_listing->setVar('logourl', $savedfilename); |
|
149 | + } else { |
|
150 | + echo 'fetch media failed.'; |
|
151 | + } |
|
152 | 152 | |
153 | - } |
|
154 | - } |
|
155 | - } |
|
156 | - $err[] = $uploader->getErrors(); |
|
157 | - print_r($err); |
|
153 | + } |
|
154 | + } |
|
155 | + } |
|
156 | + $err[] = $uploader->getErrors(); |
|
157 | + print_r($err); |
|
158 | 158 | |
159 | - if ($gpc_title != $gpc_ini_title) { |
|
160 | - $obj_listing->setVar('title', $gpc_title); |
|
161 | - } |
|
159 | + if ($gpc_title != $gpc_ini_title) { |
|
160 | + $obj_listing->setVar('title', $gpc_title); |
|
161 | + } |
|
162 | 162 | $obj_listing->setVar('itemid', $gpc_itemid); |
163 | 163 | if ($obj_listing_handler->updateListing($obj_listing)) { |
164 | - $obj_listing->setUpdated(true); |
|
165 | - } |
|
164 | + $obj_listing->setUpdated(true); |
|
165 | + } |
|
166 | 166 | |
167 | 167 | |
168 | - } else { |
|
169 | - redirect_header("index.php", 2, _MD_NOVALIDITEM_TITLEMISSING); |
|
170 | - exit(); |
|
171 | - } |
|
168 | + } else { |
|
169 | + redirect_header("index.php", 2, _MD_NOVALIDITEM_TITLEMISSING); |
|
170 | + exit(); |
|
171 | + } |
|
172 | 172 | |
173 | - /** Update description if any */ |
|
174 | - if (isset($_POST['ini_description'])) { |
|
175 | - $p_ini_description = $myts->makeTareaData4Save($_POST["ini_description"]); |
|
176 | - } else { |
|
177 | - $p_ini_description = null; |
|
178 | - } |
|
179 | - if (isset($_POST['description'])) { |
|
180 | - $p_description = $myts->makeTareaData4Save($_POST["description"]); |
|
181 | - } else { |
|
182 | - $p_description = null; |
|
183 | - } |
|
184 | - if (isset($_POST["description_set"])) { |
|
185 | - if ($_POST["description_set"] == '1') { |
|
186 | - if ($p_ini_description != $p_description) { |
|
187 | - $obj_listing->setVar('description', $p_description); |
|
188 | - $obj_listing_handler->updateDescription($obj_listing->getVar('itemid'), $obj_listing->getVar('description')); |
|
189 | - } |
|
190 | - } else |
|
191 | - if ($p_description != null or $p_description != "") { |
|
192 | - $obj_listing->setVar('description', $p_description); |
|
193 | - $obj_listing_handler->insertDescription($obj_listing->getVar('itemid'), $obj_listing->getVar('description')); |
|
194 | - } |
|
195 | - } |
|
173 | + /** Update description if any */ |
|
174 | + if (isset($_POST['ini_description'])) { |
|
175 | + $p_ini_description = $myts->makeTareaData4Save($_POST["ini_description"]); |
|
176 | + } else { |
|
177 | + $p_ini_description = null; |
|
178 | + } |
|
179 | + if (isset($_POST['description'])) { |
|
180 | + $p_description = $myts->makeTareaData4Save($_POST["description"]); |
|
181 | + } else { |
|
182 | + $p_description = null; |
|
183 | + } |
|
184 | + if (isset($_POST["description_set"])) { |
|
185 | + if ($_POST["description_set"] == '1') { |
|
186 | + if ($p_ini_description != $p_description) { |
|
187 | + $obj_listing->setVar('description', $p_description); |
|
188 | + $obj_listing_handler->updateDescription($obj_listing->getVar('itemid'), $obj_listing->getVar('description')); |
|
189 | + } |
|
190 | + } else |
|
191 | + if ($p_description != null or $p_description != "") { |
|
192 | + $obj_listing->setVar('description', $p_description); |
|
193 | + $obj_listing_handler->insertDescription($obj_listing->getVar('itemid'), $obj_listing->getVar('description')); |
|
194 | + } |
|
195 | + } |
|
196 | 196 | |
197 | 197 | /** Update categories linked to the listing if any */ |
198 | - //Get all categories currently linked to the listing |
|
198 | + //Get all categories currently linked to the listing |
|
199 | 199 | $linkedcategories = $efqListingHandler->getLinkedCategories($gpc_itemid, $post_dirid); |
200 | 200 | $allcategories = $efqListingHandler->getAllCategories($post_dirid); |
201 | 201 | $count = 0; |
202 | - foreach ($allcategories as $category) { |
|
203 | - if (isset($_POST["selected" . $category . ""])) { |
|
204 | - if (!in_array($category, $linkedcategories)) { |
|
202 | + foreach ($allcategories as $category) { |
|
203 | + if (isset($_POST["selected" . $category . ""])) { |
|
204 | + if (!in_array($category, $linkedcategories)) { |
|
205 | 205 | $newid = $xoopsDB->genId($xoopsDB->prefix("efqdiralpha1_item_x_cat") . |
206 | - "_xid_seq"); |
|
207 | - $sql = sprintf("INSERT INTO %s (xid, cid, itemid, active, created) VALUES (%u, %u, %u, '%s', '%s')", |
|
208 | - $xoopsDB->prefix("efqdiralpha1_item_x_cat"), $newid, $category, $gpc_itemid, 1, time()); |
|
209 | - $xoopsDB->query($sql) or $eh->show("0013"); |
|
210 | - } |
|
211 | - $count++; |
|
212 | - } else { |
|
213 | - if (in_array($category, $linkedcategories)) { |
|
214 | - $sql = sprintf("DELETE FROM %s WHERE cid=%u AND itemid=%u", $xoopsDB->prefix("efqdiralpha1_item_x_cat"), $category, $gpc_itemid); |
|
215 | - $xoopsDB->query($sql) or $eh->show("0013"); |
|
216 | - } |
|
217 | - } |
|
218 | - } |
|
219 | - if ($count == 0) { |
|
220 | - redirect_header(XOOPS_URL."/modules/$moddir/submit.php?dirid=".$post_dirid."", 2, _MD_NOCATEGORYMATCH); |
|
221 | - exit(); |
|
222 | - } |
|
206 | + "_xid_seq"); |
|
207 | + $sql = sprintf("INSERT INTO %s (xid, cid, itemid, active, created) VALUES (%u, %u, %u, '%s', '%s')", |
|
208 | + $xoopsDB->prefix("efqdiralpha1_item_x_cat"), $newid, $category, $gpc_itemid, 1, time()); |
|
209 | + $xoopsDB->query($sql) or $eh->show("0013"); |
|
210 | + } |
|
211 | + $count++; |
|
212 | + } else { |
|
213 | + if (in_array($category, $linkedcategories)) { |
|
214 | + $sql = sprintf("DELETE FROM %s WHERE cid=%u AND itemid=%u", $xoopsDB->prefix("efqdiralpha1_item_x_cat"), $category, $gpc_itemid); |
|
215 | + $xoopsDB->query($sql) or $eh->show("0013"); |
|
216 | + } |
|
217 | + } |
|
218 | + } |
|
219 | + if ($count == 0) { |
|
220 | + redirect_header(XOOPS_URL."/modules/$moddir/submit.php?dirid=".$post_dirid."", 2, _MD_NOCATEGORYMATCH); |
|
221 | + exit(); |
|
222 | + } |
|
223 | 223 | |
224 | 224 | /** Get all datatypes that can be associated with this listing */ |
225 | 225 | $obj_data_handler = new efqListingDataHandler(); |
226 | 226 | $listingdata = $obj_data_handler->getData($gpc_itemid); |
227 | 227 | foreach ($listingdata as $data) { |
228 | 228 | $obj_data = new efqListingData(); |
229 | - $obj_data->setListingData($data); |
|
229 | + $obj_data->setListingData($data); |
|
230 | 230 | if (isset($_POST[$data['dtypeid']])) { |
231 | - if (is_array($_POST[$data['dtypeid']])) { |
|
232 | - $post_value_array = $_POST[$data['dtypeid']]; |
|
233 | - $post_value = ""; |
|
234 | - $options_arr = split("[|]", $data['options']); |
|
235 | - $options_arr[] = '-'; |
|
236 | - $count_post_value_array = count($post_value_array); |
|
237 | - for ($i = 0; $i < $count_post_value_array; $i++) { |
|
238 | - // Check if posted value is in options. |
|
239 | - if (in_array($post_value_array[$i], $options_arr)) { |
|
240 | - if ($i == 0) { |
|
241 | - $post_value = $post_value_array[$i]; |
|
242 | - } else { |
|
243 | - $post_value .= "|".$post_value_array[$i]; |
|
244 | - } |
|
245 | - } |
|
246 | - } |
|
247 | - } else { |
|
248 | - $post_value = $myts->makeTboxData4Save($_POST[$data['dtypeid']]); |
|
249 | - } |
|
250 | - } else { |
|
251 | - $post_value = ""; |
|
252 | - } |
|
253 | - if (isset($_POST["custom".$data['dtypeid'].""])) { |
|
254 | - $post_customtitle = $myts->makeTboxData4Save($_POST['custom'.$data['dtypeid']]); |
|
255 | - } else { |
|
256 | - $post_customtitle = ""; |
|
257 | - } |
|
258 | - if (isset($_POST["url_title".$data['dtypeid'].""])) { |
|
259 | - $post_urltitle = $myts->makeTboxData4Save($_POST['url_title'.$data['dtypeid']]); |
|
260 | - } else { |
|
261 | - $post_urltitle = ""; |
|
262 | - } |
|
263 | - if (isset($_POST["url_link".$data['dtypeid'].""])) { |
|
264 | - $post_urllink = $myts->makeTboxData4Save($_POST['url_link'.$data['dtypeid']]); |
|
265 | - } else { |
|
266 | - $post_urllink = ""; |
|
267 | - } |
|
268 | - if ($post_urllink != "") { |
|
269 | - $post_value = $post_urllink . '|' . $post_urltitle; |
|
270 | - } |
|
231 | + if (is_array($_POST[$data['dtypeid']])) { |
|
232 | + $post_value_array = $_POST[$data['dtypeid']]; |
|
233 | + $post_value = ""; |
|
234 | + $options_arr = split("[|]", $data['options']); |
|
235 | + $options_arr[] = '-'; |
|
236 | + $count_post_value_array = count($post_value_array); |
|
237 | + for ($i = 0; $i < $count_post_value_array; $i++) { |
|
238 | + // Check if posted value is in options. |
|
239 | + if (in_array($post_value_array[$i], $options_arr)) { |
|
240 | + if ($i == 0) { |
|
241 | + $post_value = $post_value_array[$i]; |
|
242 | + } else { |
|
243 | + $post_value .= "|".$post_value_array[$i]; |
|
244 | + } |
|
245 | + } |
|
246 | + } |
|
247 | + } else { |
|
248 | + $post_value = $myts->makeTboxData4Save($_POST[$data['dtypeid']]); |
|
249 | + } |
|
250 | + } else { |
|
251 | + $post_value = ""; |
|
252 | + } |
|
253 | + if (isset($_POST["custom".$data['dtypeid'].""])) { |
|
254 | + $post_customtitle = $myts->makeTboxData4Save($_POST['custom'.$data['dtypeid']]); |
|
255 | + } else { |
|
256 | + $post_customtitle = ""; |
|
257 | + } |
|
258 | + if (isset($_POST["url_title".$data['dtypeid'].""])) { |
|
259 | + $post_urltitle = $myts->makeTboxData4Save($_POST['url_title'.$data['dtypeid']]); |
|
260 | + } else { |
|
261 | + $post_urltitle = ""; |
|
262 | + } |
|
263 | + if (isset($_POST["url_link".$data['dtypeid'].""])) { |
|
264 | + $post_urllink = $myts->makeTboxData4Save($_POST['url_link'.$data['dtypeid']]); |
|
265 | + } else { |
|
266 | + $post_urllink = ""; |
|
267 | + } |
|
268 | + if ($post_urllink != "") { |
|
269 | + $post_value = $post_urllink . '|' . $post_urltitle; |
|
270 | + } |
|
271 | 271 | |
272 | 272 | |
273 | 273 | if ($data['fieldtype'] == "gmap") { |
274 | 274 | // Retrieve POST values for google map. |
275 | - if (isset($_POST["" . $data['dtypeid']."_lon"])) { |
|
276 | - $post_gmap_lon = $myts->makeTboxData4Save($_POST["".$data['dtypeid']."_lon"]); |
|
277 | - } else { |
|
278 | - $post_gmap_lon = ""; |
|
279 | - } |
|
280 | - if (isset($_POST["" . $data['dtypeid']."_lat"])) { |
|
281 | - $post_gmap_lat = $myts->makeTboxData4Save($_POST["".$data['dtypeid']."_lat"]); |
|
282 | - } else { |
|
283 | - $post_gmap_lat = ""; |
|
284 | - } |
|
285 | - if (isset($_POST["" . $data['dtypeid']."_descr"])) { |
|
286 | - $post_gmap_descr = $myts->makeTboxData4Save($_POST["".$data['dtypeid']."_descr"]); |
|
287 | - } else { |
|
288 | - $post_gmap_descr = ""; |
|
289 | - } |
|
290 | - $gmapHandler = new efqGmapHandler(); |
|
291 | - $obj_gmap = new efqGmap(); |
|
292 | - if ($data['value'] != null) { |
|
293 | - $obj_gmap->setData($gmapHandler->getByDataId($data['value'])); |
|
294 | - } |
|
295 | - $obj_gmap->setVar('lon', $post_gmap_lon); |
|
296 | - $obj_gmap->setVar('lat', $post_gmap_lat); |
|
297 | - $obj_gmap->setVar('descr', $post_gmap_descr); |
|
298 | - if ($data['value'] != null) { |
|
275 | + if (isset($_POST["" . $data['dtypeid']."_lon"])) { |
|
276 | + $post_gmap_lon = $myts->makeTboxData4Save($_POST["".$data['dtypeid']."_lon"]); |
|
277 | + } else { |
|
278 | + $post_gmap_lon = ""; |
|
279 | + } |
|
280 | + if (isset($_POST["" . $data['dtypeid']."_lat"])) { |
|
281 | + $post_gmap_lat = $myts->makeTboxData4Save($_POST["".$data['dtypeid']."_lat"]); |
|
282 | + } else { |
|
283 | + $post_gmap_lat = ""; |
|
284 | + } |
|
285 | + if (isset($_POST["" . $data['dtypeid']."_descr"])) { |
|
286 | + $post_gmap_descr = $myts->makeTboxData4Save($_POST["".$data['dtypeid']."_descr"]); |
|
287 | + } else { |
|
288 | + $post_gmap_descr = ""; |
|
289 | + } |
|
290 | + $gmapHandler = new efqGmapHandler(); |
|
291 | + $obj_gmap = new efqGmap(); |
|
292 | + if ($data['value'] != null) { |
|
293 | + $obj_gmap->setData($gmapHandler->getByDataId($data['value'])); |
|
294 | + } |
|
295 | + $obj_gmap->setVar('lon', $post_gmap_lon); |
|
296 | + $obj_gmap->setVar('lat', $post_gmap_lat); |
|
297 | + $obj_gmap->setVar('descr', $post_gmap_descr); |
|
298 | + if ($data['value'] != null) { |
|
299 | 299 | if (!$gmapHandler->updateGmap($obj_gmap)) { |
300 | - echo 'insert new gmap failed'; |
|
301 | - exit(); |
|
302 | - } else { |
|
303 | - $post_value = $obj_gmap->getVar('id'); |
|
304 | - } |
|
300 | + echo 'insert new gmap failed'; |
|
301 | + exit(); |
|
302 | + } else { |
|
303 | + $post_value = $obj_gmap->getVar('id'); |
|
304 | + } |
|
305 | 305 | |
306 | - } else { |
|
306 | + } else { |
|
307 | 307 | if (!$gmapHandler->insertGmap($obj_gmap)) { |
308 | - echo 'update gmap failed'; |
|
309 | - exit(); |
|
310 | - } else { |
|
311 | - $post_value = $obj_gmap->getVar('id'); |
|
312 | - } |
|
313 | - } |
|
308 | + echo 'update gmap failed'; |
|
309 | + exit(); |
|
310 | + } else { |
|
311 | + $post_value = $obj_gmap->getVar('id'); |
|
312 | + } |
|
313 | + } |
|
314 | 314 | } |
315 | 315 | |
316 | - if ($obj_data->getVar('itemid') == null) { |
|
317 | - // That means there was not any value, so a new record |
|
316 | + if ($obj_data->getVar('itemid') == null) { |
|
317 | + // That means there was not any value, so a new record |
|
318 | 318 | // should be added to the data table. |
319 | 319 | $obj_data->setVar('value', $post_value); |
320 | 320 | $obj_data->setVar('customtitle', $post_customtitle); |
321 | - $obj_data_handler->insertListingData($obj_data); |
|
322 | - } else { |
|
321 | + $obj_data_handler->insertListingData($obj_data); |
|
322 | + } else { |
|
323 | 323 | if ($data['value'] != $post_value) { |
324 | 324 | $obj_data->setVar('value', $post_value); |
325 | 325 | $obj_data->setVar('customtitle', $post_customtitle); |
326 | - $obj_data_handler->updateListingData($obj_data); |
|
327 | - } |
|
328 | - } |
|
329 | - } |
|
330 | - redirect_header("edit.php?item=$gpc_itemid", 1, _MD_ITEM_UPDATED); |
|
331 | - exit(); |
|
326 | + $obj_data_handler->updateListingData($obj_data); |
|
327 | + } |
|
328 | + } |
|
329 | + } |
|
330 | + redirect_header("edit.php?item=$gpc_itemid", 1, _MD_ITEM_UPDATED); |
|
331 | + exit(); |
|
332 | 332 | } else { |
333 | - // Prepare page for showing listing edit form. |
|
334 | - if (!empty($_GET['item'])) { |
|
335 | - $get_itemid = intval($_GET['item']); |
|
336 | - $get_dirid = getDirIdFromItem($get_itemid); |
|
337 | - } else { |
|
338 | - redirect_header("index.php", 2, _MD_NOVALIDITEM_GET_IDMISSING); |
|
339 | - exit(); |
|
340 | - } |
|
333 | + // Prepare page for showing listing edit form. |
|
334 | + if (!empty($_GET['item'])) { |
|
335 | + $get_itemid = intval($_GET['item']); |
|
336 | + $get_dirid = getDirIdFromItem($get_itemid); |
|
337 | + } else { |
|
338 | + redirect_header("index.php", 2, _MD_NOVALIDITEM_GET_IDMISSING); |
|
339 | + exit(); |
|
340 | + } |
|
341 | 341 | |
342 | - $xoopsOption['template_main'] = 'efqdiralpha1_editlisting.html'; |
|
343 | - include XOOPS_ROOT_PATH . "/header.php"; |
|
344 | - $xoopsTpl->assign('xoops_module_header', $xoops_module_header); |
|
345 | - $xoopsTpl->assign('lang_submit', _SUBMIT); |
|
346 | - $xoopsTpl->assign('lang_cancel', _CANCEL); |
|
342 | + $xoopsOption['template_main'] = 'efqdiralpha1_editlisting.html'; |
|
343 | + include XOOPS_ROOT_PATH . "/header.php"; |
|
344 | + $xoopsTpl->assign('xoops_module_header', $xoops_module_header); |
|
345 | + $xoopsTpl->assign('lang_submit', _SUBMIT); |
|
346 | + $xoopsTpl->assign('lang_cancel', _CANCEL); |
|
347 | 347 | |
348 | - $sql = "SELECT i.itemid, i.logourl, i.uid, i.status, i.created, i.title, i.typeid, i.dirid, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (i.itemid=t.itemid) WHERE i.itemid=".$get_itemid.""; |
|
349 | - $item_result = $xoopsDB->query($sql); |
|
350 | - $numrows = $xoopsDB->getRowsNum($item_result); |
|
348 | + $sql = "SELECT i.itemid, i.logourl, i.uid, i.status, i.created, i.title, i.typeid, i.dirid, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (i.itemid=t.itemid) WHERE i.itemid=".$get_itemid.""; |
|
349 | + $item_result = $xoopsDB->query($sql); |
|
350 | + $numrows = $xoopsDB->getRowsNum($item_result); |
|
351 | 351 | |
352 | - while (list($itemid, $logourl, $submitter, $status, $created, $itemtitle, $typeid, $dirid, $description) = $xoopsDB->fetchRow($item_result)) { |
|
353 | - $itemtitle = $myts->makeTboxData4Show($itemtitle); |
|
354 | - // Only the submitter or the admin are allowed edit a listing, so make sure |
|
355 | - // all other users are redirected elsewhere. |
|
356 | - if ($isadmin or $submitter == $userid) { |
|
357 | - if ($status == 0 and $submitter == $userid) { |
|
358 | - if ($xoopsModuleConfig['autoapproveadmin'] == 1) { |
|
359 | - // If status is not 0 and autoapprove is on, the submitter or |
|
360 | - // admin can edit the listing and with the button "view listing" |
|
361 | - // Go to the listing page in 'view' mode. |
|
362 | - $publish_button = "<form action=\"edit.php\" method=\"post\"><input type=\"hidden\" name=\"op\" value=\"publish\"><input type=\"hidden\" name=\"user\" value=\"$userid\"><input type=\"hidden\" name=\"itemid\" value=\"$get_itemid\"><input type=\"submit\" name=\"submit\" class=\"formButton\" value=\"" . |
|
363 | - _MD_PUBLISH_LISTING . "\"></form><br />"; |
|
364 | - $xoopsTpl->assign('submitview_button', $publish_button); |
|
365 | - } else { |
|
352 | + while (list($itemid, $logourl, $submitter, $status, $created, $itemtitle, $typeid, $dirid, $description) = $xoopsDB->fetchRow($item_result)) { |
|
353 | + $itemtitle = $myts->makeTboxData4Show($itemtitle); |
|
354 | + // Only the submitter or the admin are allowed edit a listing, so make sure |
|
355 | + // all other users are redirected elsewhere. |
|
356 | + if ($isadmin or $submitter == $userid) { |
|
357 | + if ($status == 0 and $submitter == $userid) { |
|
358 | + if ($xoopsModuleConfig['autoapproveadmin'] == 1) { |
|
359 | + // If status is not 0 and autoapprove is on, the submitter or |
|
360 | + // admin can edit the listing and with the button "view listing" |
|
361 | + // Go to the listing page in 'view' mode. |
|
362 | + $publish_button = "<form action=\"edit.php\" method=\"post\"><input type=\"hidden\" name=\"op\" value=\"publish\"><input type=\"hidden\" name=\"user\" value=\"$userid\"><input type=\"hidden\" name=\"itemid\" value=\"$get_itemid\"><input type=\"submit\" name=\"submit\" class=\"formButton\" value=\"" . |
|
363 | + _MD_PUBLISH_LISTING . "\"></form><br />"; |
|
364 | + $xoopsTpl->assign('submitview_button', $publish_button); |
|
365 | + } else { |
|
366 | 366 | // Only the submitter can submit listing for approval when status = 0. |
367 | - $submit_for_approval_button = "<form action=\"edit.php\" method=\"post\"><input type=\"hidden\" name=\"op\" value=\"submitforapproval\"><input type=\"hidden\" name=\"user\" value=\"$userid\"><input type=\"hidden\" name=\"itemid\" value=\"$get_itemid\"><input type=\"submit\" name=\"submit\" class=\"formButton\" value=\"" . |
|
368 | - _MD_PUBLISH_LISTING . "\"></form><br />"; |
|
369 | - $xoopsTpl->assign('submitview_button', $submit_for_approval_button); |
|
370 | - } |
|
371 | - } else |
|
372 | - if ($xoopsModuleConfig['autoapprove'] == 1 and $status == 2) { |
|
373 | - // If status is not 0 and autoapprove is on, the submitter or |
|
374 | - // admin can edit the listing and with the button "view listing" |
|
375 | - // Go to the listing page in 'view' mode. |
|
376 | - $view_button = "<form action=\"listing.php\" method=\"get\"><input type=\"hidden\" name=\"item\" value=\"" . |
|
377 | - $itemid . "\"><input type=\"submit\" value=\"" . _MD_VIEWITEM . "\"></input></form><br />"; |
|
378 | - $xoopsTpl->assign('submitview_button', $view_button); |
|
379 | - } else |
|
380 | - if ($xoopsModuleConfig['autoapproveadmin'] == 1 and $status == 1) { |
|
381 | - // If status is not 0 and autoapprove is on, the submitter or |
|
382 | - // admin can edit the listing and with the button "view listing" |
|
383 | - // Go to the listing page in 'view' mode. |
|
384 | - $publish_button = "<form action=\"edit.php\" method=\"post\"><input type=\"hidden\" name=\"op\" value=\"publish\"><input type=\"hidden\" name=\"user\" value=\"$userid\"><input type=\"hidden\" name=\"itemid\" value=\"$get_itemid\"><input type=\"submit\" name=\"submit\" class=\"formButton\" value=\"" . |
|
385 | - _MD_PUBLISH_LISTING . "\"></form><br />"; |
|
386 | - $xoopsTpl->assign('submitview_button', $publish_button); |
|
387 | - } else |
|
388 | - if (!$isadmin) { |
|
389 | - // Only admin is allowed to edit a listing after approval (status = 2) |
|
390 | - // in case autoapprove is off. |
|
391 | - redirect_header("listing.php?item=".$itemid, 2, _MD_ONLYADMIN_ALLOWED_TO_EDIT); |
|
392 | - exit(); |
|
393 | - } |
|
394 | - if ($logourl != "") { |
|
395 | - $picture = "uploads/$logourl"; |
|
396 | - } else { |
|
397 | - $picture = "images/nopicture.gif"; |
|
398 | - } |
|
399 | - ob_start(); |
|
400 | - $form = new XoopsThemeForm(_MD_EDITITEM_FORM, 'editform', 'edit.php'); |
|
401 | - $form->setExtra('enctype="multipart/form-data"'); |
|
402 | - $form->addElement(new XoopsFormText(_MD_TITLE, "itemtitle", 50, 250, $itemtitle), true); |
|
403 | - $categories = getCatSelectArea($get_itemid, $dirid); |
|
404 | - $form_cats = new XoopsFormLabel(_MD_ITEMCATEGORIES, "$categories"); |
|
405 | - $form->addElement($form_cats); |
|
406 | - $form->addElement(new XoopsFormDhtmlTextArea(_MD_DESCRIPTION, "description", $description, 5, 50)); |
|
407 | - $form->addElement(new XoopsFormFile(_MD_SELECT_PIC, 'image', 30000)); |
|
408 | - $form->addElement(new XoopsFormImage(_MD_CURRENT_PIC, "current_image", null, "$picture", "", "")); |
|
367 | + $submit_for_approval_button = "<form action=\"edit.php\" method=\"post\"><input type=\"hidden\" name=\"op\" value=\"submitforapproval\"><input type=\"hidden\" name=\"user\" value=\"$userid\"><input type=\"hidden\" name=\"itemid\" value=\"$get_itemid\"><input type=\"submit\" name=\"submit\" class=\"formButton\" value=\"" . |
|
368 | + _MD_PUBLISH_LISTING . "\"></form><br />"; |
|
369 | + $xoopsTpl->assign('submitview_button', $submit_for_approval_button); |
|
370 | + } |
|
371 | + } else |
|
372 | + if ($xoopsModuleConfig['autoapprove'] == 1 and $status == 2) { |
|
373 | + // If status is not 0 and autoapprove is on, the submitter or |
|
374 | + // admin can edit the listing and with the button "view listing" |
|
375 | + // Go to the listing page in 'view' mode. |
|
376 | + $view_button = "<form action=\"listing.php\" method=\"get\"><input type=\"hidden\" name=\"item\" value=\"" . |
|
377 | + $itemid . "\"><input type=\"submit\" value=\"" . _MD_VIEWITEM . "\"></input></form><br />"; |
|
378 | + $xoopsTpl->assign('submitview_button', $view_button); |
|
379 | + } else |
|
380 | + if ($xoopsModuleConfig['autoapproveadmin'] == 1 and $status == 1) { |
|
381 | + // If status is not 0 and autoapprove is on, the submitter or |
|
382 | + // admin can edit the listing and with the button "view listing" |
|
383 | + // Go to the listing page in 'view' mode. |
|
384 | + $publish_button = "<form action=\"edit.php\" method=\"post\"><input type=\"hidden\" name=\"op\" value=\"publish\"><input type=\"hidden\" name=\"user\" value=\"$userid\"><input type=\"hidden\" name=\"itemid\" value=\"$get_itemid\"><input type=\"submit\" name=\"submit\" class=\"formButton\" value=\"" . |
|
385 | + _MD_PUBLISH_LISTING . "\"></form><br />"; |
|
386 | + $xoopsTpl->assign('submitview_button', $publish_button); |
|
387 | + } else |
|
388 | + if (!$isadmin) { |
|
389 | + // Only admin is allowed to edit a listing after approval (status = 2) |
|
390 | + // in case autoapprove is off. |
|
391 | + redirect_header("listing.php?item=".$itemid, 2, _MD_ONLYADMIN_ALLOWED_TO_EDIT); |
|
392 | + exit(); |
|
393 | + } |
|
394 | + if ($logourl != "") { |
|
395 | + $picture = "uploads/$logourl"; |
|
396 | + } else { |
|
397 | + $picture = "images/nopicture.gif"; |
|
398 | + } |
|
399 | + ob_start(); |
|
400 | + $form = new XoopsThemeForm(_MD_EDITITEM_FORM, 'editform', 'edit.php'); |
|
401 | + $form->setExtra('enctype="multipart/form-data"'); |
|
402 | + $form->addElement(new XoopsFormText(_MD_TITLE, "itemtitle", 50, 250, $itemtitle), true); |
|
403 | + $categories = getCatSelectArea($get_itemid, $dirid); |
|
404 | + $form_cats = new XoopsFormLabel(_MD_ITEMCATEGORIES, "$categories"); |
|
405 | + $form->addElement($form_cats); |
|
406 | + $form->addElement(new XoopsFormDhtmlTextArea(_MD_DESCRIPTION, "description", $description, 5, 50)); |
|
407 | + $form->addElement(new XoopsFormFile(_MD_SELECT_PIC, 'image', 30000)); |
|
408 | + $form->addElement(new XoopsFormImage(_MD_CURRENT_PIC, "current_image", null, "$picture", "", "")); |
|
409 | 409 | |
410 | - $obj_datafield_handler = new efqDataFieldHandler(); |
|
411 | - $datafields = $obj_datafield_handler->getDataFields($get_itemid); |
|
412 | - foreach ($datafields as $datafield) { |
|
413 | - $field = $datafieldmanager->createFieldFromArray($datafield); |
|
414 | - } |
|
415 | - $form->addElement(new XoopsFormButton('', 'submit', _MD_SAVE, 'submit')); |
|
416 | - $form->addElement(new XoopsFormHidden("op", "edit")); |
|
417 | - $form->addElement(new XoopsFormHidden("itemid", $get_itemid)); |
|
418 | - $form->addElement(new XoopsFormHidden("dirid", $get_dirid)); |
|
419 | - $form->addElement(new XoopsFormHidden("ini_itemtitle", $itemtitle)); |
|
410 | + $obj_datafield_handler = new efqDataFieldHandler(); |
|
411 | + $datafields = $obj_datafield_handler->getDataFields($get_itemid); |
|
412 | + foreach ($datafields as $datafield) { |
|
413 | + $field = $datafieldmanager->createFieldFromArray($datafield); |
|
414 | + } |
|
415 | + $form->addElement(new XoopsFormButton('', 'submit', _MD_SAVE, 'submit')); |
|
416 | + $form->addElement(new XoopsFormHidden("op", "edit")); |
|
417 | + $form->addElement(new XoopsFormHidden("itemid", $get_itemid)); |
|
418 | + $form->addElement(new XoopsFormHidden("dirid", $get_dirid)); |
|
419 | + $form->addElement(new XoopsFormHidden("ini_itemtitle", $itemtitle)); |
|
420 | 420 | |
421 | - if ($description != null) { |
|
422 | - $form->addElement(new XoopsFormHidden("ini_description", $description)); |
|
423 | - } |
|
424 | - $form->addElement(new XoopsFormHidden("uid", $userid)); |
|
425 | - if ($description != null) { |
|
426 | - $form->addElement(new XoopsFormHidden("description_set", '1')); |
|
427 | - } else { |
|
428 | - $form->addElement(new XoopsFormHidden("description_set", '0')); |
|
429 | - } |
|
430 | - $form->display(); |
|
431 | - $xoopsTpl->assign('dtypes_form', ob_get_contents()); |
|
432 | - ob_end_clean(); |
|
433 | - } |
|
421 | + if ($description != null) { |
|
422 | + $form->addElement(new XoopsFormHidden("ini_description", $description)); |
|
423 | + } |
|
424 | + $form->addElement(new XoopsFormHidden("uid", $userid)); |
|
425 | + if ($description != null) { |
|
426 | + $form->addElement(new XoopsFormHidden("description_set", '1')); |
|
427 | + } else { |
|
428 | + $form->addElement(new XoopsFormHidden("description_set", '0')); |
|
429 | + } |
|
430 | + $form->display(); |
|
431 | + $xoopsTpl->assign('dtypes_form', ob_get_contents()); |
|
432 | + ob_end_clean(); |
|
433 | + } |
|
434 | 434 | |
435 | - } |
|
435 | + } |
|
436 | 436 | |
437 | 437 | } |
438 | 438 | include_once XOOPS_ROOT_PATH . '/footer.php'; |
@@ -31,10 +31,10 @@ discard block |
||
31 | 31 | // ------------------------------------------------------------------------- // |
32 | 32 | include 'header.php'; |
33 | 33 | $myts = &MyTextSanitizer::getInstance(); // MyTextSanitizer object |
34 | -include_once XOOPS_ROOT_PATH . '/class/xoopstree.php'; |
|
35 | -include_once XOOPS_ROOT_PATH . '/class/module.errorhandler.php'; |
|
36 | -include_once XOOPS_ROOT_PATH . '/include/xoopscodes.php'; |
|
37 | -include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
34 | +include_once XOOPS_ROOT_PATH.'/class/xoopstree.php'; |
|
35 | +include_once XOOPS_ROOT_PATH.'/class/module.errorhandler.php'; |
|
36 | +include_once XOOPS_ROOT_PATH.'/include/xoopscodes.php'; |
|
37 | +include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
38 | 38 | include_once 'class/class.datafieldmanager.php'; |
39 | 39 | include_once 'class/class.datafield.php'; |
40 | 40 | include_once 'class/class.formimage.php'; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | // If the user is not logged in and anonymous postings are |
60 | 60 | // not allowed, redirect and exit. |
61 | 61 | if (empty($xoopsUser) and !$xoopsModuleConfig['anonpost']) { |
62 | - redirect_header(XOOPS_URL . "/user.php", 2, _MD_MUSTREGFIRST); |
|
62 | + redirect_header(XOOPS_URL."/user.php", 2, _MD_MUSTREGFIRST); |
|
63 | 63 | exit(); |
64 | 64 | } |
65 | 65 | |
@@ -119,11 +119,11 @@ discard block |
||
119 | 119 | $upload_files_count = count($_POST['xoops_upload_file']); |
120 | 120 | $obj_listing = new efqListing(); |
121 | 121 | $obj_listing_handler = new efqListingHandler(); |
122 | - $obj_listing->setListingVars($obj_listing_handler->getListing($gpc_itemid),"efqListing"); |
|
122 | + $obj_listing->setListingVars($obj_listing_handler->getListing($gpc_itemid), "efqListing"); |
|
123 | 123 | |
124 | 124 | if ($upload_files_count > 0) { |
125 | - include_once XOOPS_ROOT_PATH . '/class/uploader.php'; |
|
126 | - $uploader = new XoopsMediaUploader(XOOPS_ROOT_PATH . '/modules/' . $moddir . |
|
125 | + include_once XOOPS_ROOT_PATH.'/class/uploader.php'; |
|
126 | + $uploader = new XoopsMediaUploader(XOOPS_ROOT_PATH.'/modules/'.$moddir. |
|
127 | 127 | '/init_uploads', array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png', 'image/jpg'), 500000, 500, 500); |
128 | 128 | $uploader->setPrefix('logo'); |
129 | 129 | $err = array(); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | //Rename the uploaded file to the same name in a different location that does not have 777 rights or 755. |
142 | 142 | rename("".XOOPS_ROOT_PATH."/modules/".$moddir."/init_uploads/".$savedfilename."", "".XOOPS_ROOT_PATH."/modules/".$moddir."/uploads/".$savedfilename.""); |
143 | 143 | //Delete the uploaded file from the initial upload folder if it is still present in that folder. |
144 | - if (file_exists("".XOOPS_ROOT_PATH."/modules/".$moddir."/init_uploads/".$savedfilename . "")) { |
|
144 | + if (file_exists("".XOOPS_ROOT_PATH."/modules/".$moddir."/init_uploads/".$savedfilename."")) { |
|
145 | 145 | unlink("".XOOPS_ROOT_PATH."/modules/".$moddir."/init_uploads/".$savedfilename.""); |
146 | 146 | } |
147 | 147 | } |
@@ -197,12 +197,12 @@ discard block |
||
197 | 197 | /** Update categories linked to the listing if any */ |
198 | 198 | //Get all categories currently linked to the listing |
199 | 199 | $linkedcategories = $efqListingHandler->getLinkedCategories($gpc_itemid, $post_dirid); |
200 | - $allcategories = $efqListingHandler->getAllCategories($post_dirid); |
|
200 | + $allcategories = $efqListingHandler->getAllCategories($post_dirid); |
|
201 | 201 | $count = 0; |
202 | 202 | foreach ($allcategories as $category) { |
203 | - if (isset($_POST["selected" . $category . ""])) { |
|
203 | + if (isset($_POST["selected".$category.""])) { |
|
204 | 204 | if (!in_array($category, $linkedcategories)) { |
205 | - $newid = $xoopsDB->genId($xoopsDB->prefix("efqdiralpha1_item_x_cat") . |
|
205 | + $newid = $xoopsDB->genId($xoopsDB->prefix("efqdiralpha1_item_x_cat"). |
|
206 | 206 | "_xid_seq"); |
207 | 207 | $sql = sprintf("INSERT INTO %s (xid, cid, itemid, active, created) VALUES (%u, %u, %u, '%s', '%s')", |
208 | 208 | $xoopsDB->prefix("efqdiralpha1_item_x_cat"), $newid, $category, $gpc_itemid, 1, time()); |
@@ -266,23 +266,23 @@ discard block |
||
266 | 266 | $post_urllink = ""; |
267 | 267 | } |
268 | 268 | if ($post_urllink != "") { |
269 | - $post_value = $post_urllink . '|' . $post_urltitle; |
|
269 | + $post_value = $post_urllink.'|'.$post_urltitle; |
|
270 | 270 | } |
271 | 271 | |
272 | 272 | |
273 | 273 | if ($data['fieldtype'] == "gmap") { |
274 | 274 | // Retrieve POST values for google map. |
275 | - if (isset($_POST["" . $data['dtypeid']."_lon"])) { |
|
275 | + if (isset($_POST["".$data['dtypeid']."_lon"])) { |
|
276 | 276 | $post_gmap_lon = $myts->makeTboxData4Save($_POST["".$data['dtypeid']."_lon"]); |
277 | 277 | } else { |
278 | 278 | $post_gmap_lon = ""; |
279 | 279 | } |
280 | - if (isset($_POST["" . $data['dtypeid']."_lat"])) { |
|
280 | + if (isset($_POST["".$data['dtypeid']."_lat"])) { |
|
281 | 281 | $post_gmap_lat = $myts->makeTboxData4Save($_POST["".$data['dtypeid']."_lat"]); |
282 | 282 | } else { |
283 | 283 | $post_gmap_lat = ""; |
284 | 284 | } |
285 | - if (isset($_POST["" . $data['dtypeid']."_descr"])) { |
|
285 | + if (isset($_POST["".$data['dtypeid']."_descr"])) { |
|
286 | 286 | $post_gmap_descr = $myts->makeTboxData4Save($_POST["".$data['dtypeid']."_descr"]); |
287 | 287 | } else { |
288 | 288 | $post_gmap_descr = ""; |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | } |
341 | 341 | |
342 | 342 | $xoopsOption['template_main'] = 'efqdiralpha1_editlisting.html'; |
343 | - include XOOPS_ROOT_PATH . "/header.php"; |
|
343 | + include XOOPS_ROOT_PATH."/header.php"; |
|
344 | 344 | $xoopsTpl->assign('xoops_module_header', $xoops_module_header); |
345 | 345 | $xoopsTpl->assign('lang_submit', _SUBMIT); |
346 | 346 | $xoopsTpl->assign('lang_cancel', _CANCEL); |
@@ -359,13 +359,13 @@ discard block |
||
359 | 359 | // If status is not 0 and autoapprove is on, the submitter or |
360 | 360 | // admin can edit the listing and with the button "view listing" |
361 | 361 | // Go to the listing page in 'view' mode. |
362 | - $publish_button = "<form action=\"edit.php\" method=\"post\"><input type=\"hidden\" name=\"op\" value=\"publish\"><input type=\"hidden\" name=\"user\" value=\"$userid\"><input type=\"hidden\" name=\"itemid\" value=\"$get_itemid\"><input type=\"submit\" name=\"submit\" class=\"formButton\" value=\"" . |
|
363 | - _MD_PUBLISH_LISTING . "\"></form><br />"; |
|
362 | + $publish_button = "<form action=\"edit.php\" method=\"post\"><input type=\"hidden\" name=\"op\" value=\"publish\"><input type=\"hidden\" name=\"user\" value=\"$userid\"><input type=\"hidden\" name=\"itemid\" value=\"$get_itemid\"><input type=\"submit\" name=\"submit\" class=\"formButton\" value=\"". |
|
363 | + _MD_PUBLISH_LISTING."\"></form><br />"; |
|
364 | 364 | $xoopsTpl->assign('submitview_button', $publish_button); |
365 | 365 | } else { |
366 | 366 | // Only the submitter can submit listing for approval when status = 0. |
367 | - $submit_for_approval_button = "<form action=\"edit.php\" method=\"post\"><input type=\"hidden\" name=\"op\" value=\"submitforapproval\"><input type=\"hidden\" name=\"user\" value=\"$userid\"><input type=\"hidden\" name=\"itemid\" value=\"$get_itemid\"><input type=\"submit\" name=\"submit\" class=\"formButton\" value=\"" . |
|
368 | - _MD_PUBLISH_LISTING . "\"></form><br />"; |
|
367 | + $submit_for_approval_button = "<form action=\"edit.php\" method=\"post\"><input type=\"hidden\" name=\"op\" value=\"submitforapproval\"><input type=\"hidden\" name=\"user\" value=\"$userid\"><input type=\"hidden\" name=\"itemid\" value=\"$get_itemid\"><input type=\"submit\" name=\"submit\" class=\"formButton\" value=\"". |
|
368 | + _MD_PUBLISH_LISTING."\"></form><br />"; |
|
369 | 369 | $xoopsTpl->assign('submitview_button', $submit_for_approval_button); |
370 | 370 | } |
371 | 371 | } else |
@@ -373,16 +373,16 @@ discard block |
||
373 | 373 | // If status is not 0 and autoapprove is on, the submitter or |
374 | 374 | // admin can edit the listing and with the button "view listing" |
375 | 375 | // Go to the listing page in 'view' mode. |
376 | - $view_button = "<form action=\"listing.php\" method=\"get\"><input type=\"hidden\" name=\"item\" value=\"" . |
|
377 | - $itemid . "\"><input type=\"submit\" value=\"" . _MD_VIEWITEM . "\"></input></form><br />"; |
|
376 | + $view_button = "<form action=\"listing.php\" method=\"get\"><input type=\"hidden\" name=\"item\" value=\"". |
|
377 | + $itemid."\"><input type=\"submit\" value=\""._MD_VIEWITEM."\"></input></form><br />"; |
|
378 | 378 | $xoopsTpl->assign('submitview_button', $view_button); |
379 | 379 | } else |
380 | 380 | if ($xoopsModuleConfig['autoapproveadmin'] == 1 and $status == 1) { |
381 | 381 | // If status is not 0 and autoapprove is on, the submitter or |
382 | 382 | // admin can edit the listing and with the button "view listing" |
383 | 383 | // Go to the listing page in 'view' mode. |
384 | - $publish_button = "<form action=\"edit.php\" method=\"post\"><input type=\"hidden\" name=\"op\" value=\"publish\"><input type=\"hidden\" name=\"user\" value=\"$userid\"><input type=\"hidden\" name=\"itemid\" value=\"$get_itemid\"><input type=\"submit\" name=\"submit\" class=\"formButton\" value=\"" . |
|
385 | - _MD_PUBLISH_LISTING . "\"></form><br />"; |
|
384 | + $publish_button = "<form action=\"edit.php\" method=\"post\"><input type=\"hidden\" name=\"op\" value=\"publish\"><input type=\"hidden\" name=\"user\" value=\"$userid\"><input type=\"hidden\" name=\"itemid\" value=\"$get_itemid\"><input type=\"submit\" name=\"submit\" class=\"formButton\" value=\"". |
|
385 | + _MD_PUBLISH_LISTING."\"></form><br />"; |
|
386 | 386 | $xoopsTpl->assign('submitview_button', $publish_button); |
387 | 387 | } else |
388 | 388 | if (!$isadmin) { |
@@ -435,5 +435,5 @@ discard block |
||
435 | 435 | } |
436 | 436 | |
437 | 437 | } |
438 | -include_once XOOPS_ROOT_PATH . '/footer.php'; |
|
438 | +include_once XOOPS_ROOT_PATH.'/footer.php'; |
|
439 | 439 | ?> |
440 | 440 | \ No newline at end of file |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | // Based upon the mylinks and the mxDirectory modules // |
31 | 31 | // ------------------------------------------------------------------------- // |
32 | 32 | include "header.php"; |
33 | -$myts =& MyTextSanitizer::getInstance();// MyTextSanitizer object |
|
33 | +$myts = & MyTextSanitizer::getInstance(); // MyTextSanitizer object |
|
34 | 34 | include_once XOOPS_ROOT_PATH.'/class/xoopstree.php'; |
35 | 35 | include_once XOOPS_ROOT_PATH.'/class/module.errorhandler.php'; |
36 | 36 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | include_once "class/class.gmap.php"; |
40 | 40 | include_once "class/class.couponhandler.php"; |
41 | 41 | |
42 | -$mytree = new XoopsTree($xoopsDB->prefix("efqdiralpha1_cat"),"cid","pid"); |
|
42 | +$mytree = new XoopsTree($xoopsDB->prefix("efqdiralpha1_cat"), "cid", "pid"); |
|
43 | 43 | $datafieldmanager = new efqDataFieldManager(); |
44 | 44 | $eh = new ErrorHandler; |
45 | 45 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | if (!empty($_GET['item'])) { |
61 | 61 | $get_itemid = intval($_GET['item']); |
62 | 62 | } else { |
63 | - redirect_header("index.php",2,_MD_NOVALIDITEM); |
|
63 | + redirect_header("index.php", 2, _MD_NOVALIDITEM); |
|
64 | 64 | exit(); |
65 | 65 | } |
66 | 66 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | if ($xoopsUser->getVar('uid') == $listing->getVar('uid')) { |
91 | 91 | $islistingowner = true; |
92 | 92 | $xoopsTpl->assign('listingowner', '1'); |
93 | - if ( $listing->getVar('status') == '2' and $xoopsModuleConfig['autoapprove'] == 1 ) { |
|
93 | + if ($listing->getVar('status') == '2' and $xoopsModuleConfig['autoapprove'] == 1) { |
|
94 | 94 | $editrights = '1'; |
95 | 95 | } else { |
96 | 96 | $editrights = '0'; |
@@ -49,24 +49,24 @@ discard block |
||
49 | 49 | |
50 | 50 | |
51 | 51 | if (isset($_GET['catid'])) { |
52 | - $get_cid = intval($_GET['cid']); |
|
52 | + $get_cid = intval($_GET['cid']); |
|
53 | 53 | } else { |
54 | - $get_cid = "1"; |
|
54 | + $get_cid = "1"; |
|
55 | 55 | } |
56 | 56 | if (isset($_GET['dirid'])) { |
57 | - $get_dirid = intval($_GET['dirid']); |
|
57 | + $get_dirid = intval($_GET['dirid']); |
|
58 | 58 | } else if (isset($_POST['dirid'])) { |
59 | - $get_dirid = intval($_POST['dirid']); |
|
59 | + $get_dirid = intval($_POST['dirid']); |
|
60 | 60 | } |
61 | 61 | if(isset($_GET['orderby'])) { |
62 | - $orderby = convertorderbyin($_GET['orderby']); |
|
62 | + $orderby = convertorderbyin($_GET['orderby']); |
|
63 | 63 | } else { |
64 | - $orderby = "title ASC"; |
|
64 | + $orderby = "title ASC"; |
|
65 | 65 | } |
66 | 66 | if(isset($_GET['page'])) { |
67 | - $get_page = intval($_GET['page']); |
|
67 | + $get_page = intval($_GET['page']); |
|
68 | 68 | } else { |
69 | - $get_page = 1; |
|
69 | + $get_page = 1; |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | $xoopsOption['template_main'] = 'efqdiralpha1_search.html'; |
@@ -505,23 +505,23 @@ discard block |
||
505 | 505 | |
506 | 506 | function getNumberOfResults($searchnum=0, $limit=10) { |
507 | 507 | global $xoopsDB, $eh; |
508 | - $block = array(); |
|
508 | + $block = array(); |
|
509 | 509 | $sql = "SELECT MAX(page), items FROM ".$xoopsDB->prefix("efqdiralpha1_searchresults")." WHERE searchnum = '".$searchnum."' GROUP by page"; |
510 | 510 | $result = $xoopsDB->query($sql) or $eh->show("0013"); |
511 | - $num_results = $xoopsDB->getRowsNum($result); |
|
512 | - if (!$result) { |
|
513 | - return 0; |
|
514 | - } |
|
515 | - for ($i=0; $i <$num_results; $i++) |
|
516 | - { |
|
517 | - $row = mysql_fetch_array($result); |
|
518 | - $page = $row['MAX(page)']; |
|
511 | + $num_results = $xoopsDB->getRowsNum($result); |
|
512 | + if (!$result) { |
|
513 | + return 0; |
|
514 | + } |
|
515 | + for ($i=0; $i <$num_results; $i++) |
|
516 | + { |
|
517 | + $row = mysql_fetch_array($result); |
|
518 | + $page = $row['MAX(page)']; |
|
519 | 519 | $items = $row['items']; |
520 | - } |
|
520 | + } |
|
521 | 521 | $split_items = split(",",$items); |
522 | 522 | $count_lastpage = count($split_items); |
523 | 523 | $count = ($page * $limit) - ($limit - $count_lastpage); |
524 | - return $count; |
|
524 | + return $count; |
|
525 | 525 | } |
526 | 526 | |
527 | 527 | function mod_search_count($queryarray, $andor, $limit, $offset=0, $filter_arr) { |
@@ -615,19 +615,19 @@ discard block |
||
615 | 615 | */ |
616 | 616 | if (!$strict) |
617 | 617 | { |
618 | - foreach ($multiArray as $multiArrayKey => $childArray) |
|
619 | - { |
|
620 | - if (array_key_exists($keyName, $childArray) && $childArray[$keyName] == $value) { |
|
618 | + foreach ($multiArray as $multiArrayKey => $childArray) |
|
619 | + { |
|
620 | + if (array_key_exists($keyName, $childArray) && $childArray[$keyName] == $value) { |
|
621 | 621 | return $multiArrayKey; |
622 | - } |
|
623 | - } |
|
622 | + } |
|
623 | + } |
|
624 | 624 | } else { |
625 | - foreach ($multiArray as $multiArrayKey => $childArray) |
|
626 | - { |
|
627 | - if (array_key_exists($keyName, $childArray) && $childArray[$keyName] === $value) { |
|
628 | - return $multiArrayKey; |
|
629 | - } |
|
630 | - } |
|
625 | + foreach ($multiArray as $multiArrayKey => $childArray) |
|
626 | + { |
|
627 | + if (array_key_exists($keyName, $childArray) && $childArray[$keyName] === $value) { |
|
628 | + return $multiArrayKey; |
|
629 | + } |
|
630 | + } |
|
631 | 631 | } |
632 | 632 | return false; |
633 | 633 | } |
@@ -81,61 +81,61 @@ discard block |
||
81 | 81 | $filter_arr = array(); |
82 | 82 | while(list($dtypeid, $dtypetitle, $dtypeoptions, $fieldtype) = $xoopsDB->fetchRow($result)) { |
83 | 83 | switch ($fieldtype) { |
84 | - case "textbox": |
|
85 | - $filter_arr[] = getPostedValue_text($dtypeid); |
|
86 | - break; |
|
87 | - case "textarea": |
|
88 | - $filter_arr[] = getPostedValue_text($dtypeid); |
|
89 | - break; |
|
90 | - case "yesno": |
|
91 | - $filter_arr[] = getPostedValue_text($dtypeid); |
|
92 | - break; |
|
93 | - case "radio": |
|
94 | - $filter_arr[] = getPostedValue_text($dtypeid); |
|
95 | - break; |
|
96 | - case "select": |
|
97 | - $selectarr = getPostedValue_array($dtypeid); |
|
98 | - $count_arr = count($selectarr); |
|
84 | + case "textbox": |
|
85 | + $filter_arr[] = getPostedValue_text($dtypeid); |
|
86 | + break; |
|
87 | + case "textarea": |
|
88 | + $filter_arr[] = getPostedValue_text($dtypeid); |
|
89 | + break; |
|
90 | + case "yesno": |
|
91 | + $filter_arr[] = getPostedValue_text($dtypeid); |
|
92 | + break; |
|
93 | + case "radio": |
|
94 | + $filter_arr[] = getPostedValue_text($dtypeid); |
|
95 | + break; |
|
96 | + case "select": |
|
97 | + $selectarr = getPostedValue_array($dtypeid); |
|
98 | + $count_arr = count($selectarr); |
|
99 | 99 | |
100 | - if ($count_arr >= 1) { |
|
101 | - foreach ($selectarr as $arr) { |
|
102 | - $selectarray[] = $arr['postvalue']; |
|
100 | + if ($count_arr >= 1) { |
|
101 | + foreach ($selectarr as $arr) { |
|
102 | + $selectarray[] = $arr['postvalue']; |
|
103 | + } |
|
104 | + $filter_arr[] = array('dtypeid' => $dtypeid, 'constr' => "equal", 'postvalue' => $selectarr['postvalue'], 'selectfields' => $selectarray, 'addressfields' => 0); |
|
103 | 105 | } |
104 | - $filter_arr[] = array('dtypeid' => $dtypeid, 'constr' => "equal", 'postvalue' => $selectarr['postvalue'], 'selectfields' => $selectarray, 'addressfields' => 0); |
|
105 | - } |
|
106 | - break; |
|
107 | - case "dhtml": |
|
108 | - $filter_arr[] = getPostedValue_text($dtypeid); |
|
109 | - break; |
|
110 | - case "address": |
|
111 | - $addressarr = getPostedValue_address($dtypeid); |
|
112 | - $addressarray = array(); |
|
113 | - //$countarr = count($address |
|
114 | - if (is_array($addressarray) && count($addressarray) >= 1) { |
|
115 | - foreach ($addressarr as $arr) { |
|
116 | - $addressarray[] = array($arr['field'] => $arr['postvalue']); |
|
106 | + break; |
|
107 | + case "dhtml": |
|
108 | + $filter_arr[] = getPostedValue_text($dtypeid); |
|
109 | + break; |
|
110 | + case "address": |
|
111 | + $addressarr = getPostedValue_address($dtypeid); |
|
112 | + $addressarray = array(); |
|
113 | + //$countarr = count($address |
|
114 | + if (is_array($addressarray) && count($addressarray) >= 1) { |
|
115 | + foreach ($addressarr as $arr) { |
|
116 | + $addressarray[] = array($arr['field'] => $arr['postvalue']); |
|
117 | + } |
|
118 | + $filter_arr[] = array('dtypeid' => $dtypeid, 'constr' => "equal", 'postvalue' => $arr['postvalue'], 'selectfields' => 0, 'addressfields' => $addressarray); |
|
117 | 119 | } |
118 | - $filter_arr[] = array('dtypeid' => $dtypeid, 'constr' => "equal", 'postvalue' => $arr['postvalue'], 'selectfields' => 0, 'addressfields' => $addressarray); |
|
119 | - } |
|
120 | - break; |
|
121 | - case "rating": |
|
122 | - $selectarr = getPostedValue_array($dtypeid); |
|
123 | - //$selectarr = getPostedValue_text($dtypeid); |
|
124 | - $count_arr = count($selectarr); |
|
120 | + break; |
|
121 | + case "rating": |
|
122 | + $selectarr = getPostedValue_array($dtypeid); |
|
123 | + //$selectarr = getPostedValue_text($dtypeid); |
|
124 | + $count_arr = count($selectarr); |
|
125 | 125 | |
126 | - if ($count_arr >= 1) { |
|
127 | - foreach ($selectarr as $arr) { |
|
128 | - $selectarray[] = $arr; |
|
126 | + if ($count_arr >= 1) { |
|
127 | + foreach ($selectarr as $arr) { |
|
128 | + $selectarray[] = $arr; |
|
129 | + } |
|
130 | + //echo $selectarr['postvalue']; |
|
131 | + $filter_arr[] = array('dtypeid' => $dtypeid, 'constr' => $selectarr['constr'], 'postvalue' => $selectarr['postvalue'], 'selectfields' => '', 'addressfields' => 0); |
|
129 | 132 | } |
130 | - //echo $selectarr['postvalue']; |
|
131 | - $filter_arr[] = array('dtypeid' => $dtypeid, 'constr' => $selectarr['constr'], 'postvalue' => $selectarr['postvalue'], 'selectfields' => '', 'addressfields' => 0); |
|
132 | - } |
|
133 | - break; |
|
134 | - case "date": |
|
135 | - $filter_arr[] = getPostedValue_text($dtypeid); |
|
136 | - break; |
|
137 | - default: |
|
138 | - break; |
|
133 | + break; |
|
134 | + case "date": |
|
135 | + $filter_arr[] = getPostedValue_text($dtypeid); |
|
136 | + break; |
|
137 | + default: |
|
138 | + break; |
|
139 | 139 | } |
140 | 140 | } |
141 | 141 | if(isset($_POST['q'])) { |
@@ -390,40 +390,40 @@ discard block |
||
390 | 390 | ${"sql".$n} = ""; |
391 | 391 | //$zero_allowed = '1'; |
392 | 392 | switch ($constr) { |
393 | - case "equal": |
|
394 | - ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
395 | - $constraint = " = '".$postvalue."'"; |
|
396 | - break; |
|
397 | - case "notequal": |
|
398 | - ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
399 | - $constraint = " <> '".$postvalue."'"; |
|
400 | - break; |
|
401 | - case "contains": |
|
402 | - ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
403 | - $constraint = " LIKE '%".$postvalue."%'"; |
|
404 | - break; |
|
405 | - case "notcontain": |
|
406 | - ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
407 | - $constraint = " NOT LIKE '%".$postvalue."%'"; |
|
408 | - break; |
|
409 | - case "begins": |
|
410 | - ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
411 | - $constraint = " LIKE '".$postvalue."%'"; |
|
412 | - break; |
|
413 | - case "ends": |
|
414 | - ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
415 | - $constraint = " LIKE '%".$postvalue."'"; |
|
416 | - break; |
|
417 | - case "bigger": |
|
418 | - ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
419 | - $constraint = " > ".intval($postvalue).""; |
|
420 | - break; |
|
421 | - case "smaller": |
|
422 | - ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
423 | - $constraint = " < ".intval($postvalue).""; |
|
424 | - break; |
|
425 | - default: |
|
426 | - break; |
|
393 | + case "equal": |
|
394 | + ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
395 | + $constraint = " = '".$postvalue."'"; |
|
396 | + break; |
|
397 | + case "notequal": |
|
398 | + ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
399 | + $constraint = " <> '".$postvalue."'"; |
|
400 | + break; |
|
401 | + case "contains": |
|
402 | + ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
403 | + $constraint = " LIKE '%".$postvalue."%'"; |
|
404 | + break; |
|
405 | + case "notcontain": |
|
406 | + ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
407 | + $constraint = " NOT LIKE '%".$postvalue."%'"; |
|
408 | + break; |
|
409 | + case "begins": |
|
410 | + ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
411 | + $constraint = " LIKE '".$postvalue."%'"; |
|
412 | + break; |
|
413 | + case "ends": |
|
414 | + ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
415 | + $constraint = " LIKE '%".$postvalue."'"; |
|
416 | + break; |
|
417 | + case "bigger": |
|
418 | + ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
419 | + $constraint = " > ".intval($postvalue).""; |
|
420 | + break; |
|
421 | + case "smaller": |
|
422 | + ${"sql".$n} .= "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
|
423 | + $constraint = " < ".intval($postvalue).""; |
|
424 | + break; |
|
425 | + default: |
|
426 | + break; |
|
427 | 427 | } |
428 | 428 | if ($postvalue != '0' ) { |
429 | 429 | ${"sql".$n} .= $andor." (d.dtypeid = ".$dtypeid." AND d.value ".$constraint.")"; |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | include_once "class/class.efqtree.php"; |
41 | 41 | include_once "class/class.datafieldmanager.php"; |
42 | 42 | |
43 | -$myts =& MyTextSanitizer::getInstance(); |
|
43 | +$myts = & MyTextSanitizer::getInstance(); |
|
44 | 44 | $eh = new ErrorHandler; |
45 | 45 | $datafieldmanager = new efqDataFieldManager(); |
46 | 46 | |
@@ -58,12 +58,12 @@ discard block |
||
58 | 58 | } else if (isset($_POST['dirid'])) { |
59 | 59 | $get_dirid = intval($_POST['dirid']); |
60 | 60 | } |
61 | -if(isset($_GET['orderby'])) { |
|
61 | +if (isset($_GET['orderby'])) { |
|
62 | 62 | $orderby = convertorderbyin($_GET['orderby']); |
63 | 63 | } else { |
64 | 64 | $orderby = "title ASC"; |
65 | 65 | } |
66 | -if(isset($_GET['page'])) { |
|
66 | +if (isset($_GET['page'])) { |
|
67 | 67 | $get_page = intval($_GET['page']); |
68 | 68 | } else { |
69 | 69 | $get_page = 1; |
@@ -74,12 +74,12 @@ discard block |
||
74 | 74 | $xoopsTpl->assign('xoops_module_header', $xoops_module_header); |
75 | 75 | //The advanced search is within a directory |
76 | 76 | //First get an array of all datatypes within a directory that has listings linked to them |
77 | -if ( isset($_POST['submit']) ) { |
|
77 | +if (isset($_POST['submit'])) { |
|
78 | 78 | $sql = "SELECT DISTINCT dt.dtypeid, dt.title, dt.options, ft.fieldtype FROM ".$xoopsDB->prefix('efqdiralpha1_fieldtypes')." ft, ".$xoopsDB->prefix('efqdiralpha1_dtypes')." dt, ".$xoopsDB->prefix('efqdiralpha1_dtypes_x_cat')." dxc, ".$xoopsDB->prefix('efqdiralpha1_cat')." c WHERE c.cid=dxc.cid AND dt.dtypeid=dxc.dtypeid AND dt.fieldtypeid=ft.typeid AND c.dirid='$get_dirid' AND dt.activeyn='1'"; |
79 | 79 | $result = $xoopsDB->query($sql) or $eh->show("0013"); |
80 | 80 | $num_results = $xoopsDB->getRowsNum($result); |
81 | 81 | $filter_arr = array(); |
82 | - while(list($dtypeid, $dtypetitle, $dtypeoptions, $fieldtype) = $xoopsDB->fetchRow($result)) { |
|
82 | + while (list($dtypeid, $dtypetitle, $dtypeoptions, $fieldtype) = $xoopsDB->fetchRow($result)) { |
|
83 | 83 | switch ($fieldtype) { |
84 | 84 | case "textbox": |
85 | 85 | $filter_arr[] = getPostedValue_text($dtypeid); |
@@ -138,20 +138,20 @@ discard block |
||
138 | 138 | break; |
139 | 139 | } |
140 | 140 | } |
141 | - if(isset($_POST['q'])) { |
|
141 | + if (isset($_POST['q'])) { |
|
142 | 142 | $querystring = mysql_real_escape_string($myts->stripSlashesGPC($_POST['q'])); |
143 | 143 | } else { |
144 | 144 | $querystring = ""; |
145 | 145 | } |
146 | - $poscount = substr_count($querystring, '"')/2; |
|
146 | + $poscount = substr_count($querystring, '"') / 2; |
|
147 | 147 | $specialarr = array(); |
148 | - for ($i=0; $i<$poscount; $i++) { |
|
149 | - $start = strpos($querystring, '"',0); |
|
150 | - $end = strpos($querystring, '"',$start+1); |
|
148 | + for ($i = 0; $i < $poscount; $i++) { |
|
149 | + $start = strpos($querystring, '"', 0); |
|
150 | + $end = strpos($querystring, '"', $start + 1); |
|
151 | 151 | if ($end != false) { |
152 | - $specialstring = ltrim(substr($querystring, $start, $end-$start),'"'); |
|
152 | + $specialstring = ltrim(substr($querystring, $start, $end - $start), '"'); |
|
153 | 153 | $specialarr[] = $specialstring; |
154 | - $querystring = ltrim(substr_replace($querystring, "", $start, $end-$start+1)); |
|
154 | + $querystring = ltrim(substr_replace($querystring, "", $start, $end - $start + 1)); |
|
155 | 155 | } else { |
156 | 156 | $querystring = ltrim(substr_replace($querystring, "", $start, 1)); |
157 | 157 | } |
@@ -175,22 +175,22 @@ discard block |
||
175 | 175 | $items_arr_text = ""; |
176 | 176 | //Calculate the number of result pages. |
177 | 177 | if ($count_results > $limit) { |
178 | - $count_pages = ceil($count_results/$limit); |
|
178 | + $count_pages = ceil($count_results / $limit); |
|
179 | 179 | } else { |
180 | 180 | $count_pages = 1; |
181 | 181 | } |
182 | - $pages_text = sprintf(_MD_LISTINGS_FOUND_ADV,$count_results); |
|
182 | + $pages_text = sprintf(_MD_LISTINGS_FOUND_ADV, $count_results); |
|
183 | 183 | |
184 | 184 | if ($count_pages >= 2) { |
185 | 185 | $searchnum = uniqid(rand(), true); |
186 | 186 | $pages_text .= ""._MD_PAGES."<a href=\"advancedsearch.php?ref=".$searchnum."&page=1&dirid=".$get_dirid."\">1</a>"; |
187 | 187 | } |
188 | - for ($i=1; $i < $count_pages; $i++) { |
|
188 | + for ($i = 1; $i < $count_pages; $i++) { |
|
189 | 189 | $page = $i + 1; |
190 | 190 | $pages_text .= " - <a href=\"advancedsearch.php?ref=".$searchnum."&page=".$page."&dirid=".$get_dirid."\">".$page."</a>"; |
191 | 191 | } |
192 | - $pages_text .= sprintf(_MD_NEW_SEARCH_ADV,$get_dirid); |
|
193 | - $pages_top_text = sprintf(_MD_PAGE_OF_PAGES,$get_page,$count_pages)."<br /><br />"; |
|
192 | + $pages_text .= sprintf(_MD_NEW_SEARCH_ADV, $get_dirid); |
|
193 | + $pages_top_text = sprintf(_MD_PAGE_OF_PAGES, $get_page, $count_pages)."<br /><br />"; |
|
194 | 194 | |
195 | 195 | ob_start(); |
196 | 196 | echo "<div class=\"itemTitleLarge\">"._MD_SEARCHRESULTS_TITLE."</div><br />"; |
@@ -201,21 +201,21 @@ discard block |
||
201 | 201 | $y = 0; |
202 | 202 | $page = 1; |
203 | 203 | foreach ($searchresults as $result) { |
204 | - if ( $y < $limit && $page == 1) { |
|
204 | + if ($y < $limit && $page == 1) { |
|
205 | 205 | echo "<div class=\"itemTitle\"><a href=\"".$result['link']."\">".$result['title']."</a></div><div class=\"itemText\">".$result['description']."</div><hr />"; |
206 | - if ( $y < $limit && $y > 0 ) { |
|
206 | + if ($y < $limit && $y > 0) { |
|
207 | 207 | $items_arr_text .= ",".$result['itemid'].""; |
208 | 208 | } else { |
209 | 209 | $items_arr_text = $result['itemid']; |
210 | 210 | } |
211 | 211 | $y++; |
212 | - } else if ( $y < $limit && $y > 0 ) { |
|
212 | + } else if ($y < $limit && $y > 0) { |
|
213 | 213 | $items_arr_text .= ",".$result['itemid'].""; |
214 | 214 | $y++; |
215 | - } else if ( $y < $limit && $y == 0 ) { |
|
215 | + } else if ($y < $limit && $y == 0) { |
|
216 | 216 | $items_arr_text = $result['itemid']; |
217 | 217 | $y++; |
218 | - } else if ( $y == $limit ) { |
|
218 | + } else if ($y == $limit) { |
|
219 | 219 | //Save $items_arr_text and $page into DB |
220 | 220 | $newid = $xoopsDB->genId($xoopsDB->prefix("efqdiralpha1_searchresults")."_searchid_seq"); |
221 | 221 | $sql = sprintf("INSERT INTO %s (searchid, searchnum, created, page, items, dirid, catid) VALUES (%u, '%s', '%s', %u, '%s', %u, %u)", $xoopsDB->prefix("efqdiralpha1_searchresults"), $newid, $searchnum, time(), $page, $items_arr_text, $get_dirid, $get_cid); |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | $page++; |
229 | 229 | } |
230 | 230 | } |
231 | - if ( $y != 0 && $page > 1 ) { |
|
231 | + if ($y != 0 && $page > 1) { |
|
232 | 232 | $newid = $xoopsDB->genId($xoopsDB->prefix("efqdiralpha1_searchresults")."_searchid_seq"); |
233 | 233 | $sql = sprintf("INSERT INTO %s (searchid, searchnum, created, page, items, dirid, catid) VALUES (%u, '%s', '%s', %u, '%s', %u, %u)", $xoopsDB->prefix("efqdiralpha1_searchresults"), $newid, $searchnum, time(), $page, $items_arr_text, $get_dirid, $get_cid); |
234 | 234 | $xoopsDB->query($sql) or $eh->show("0013"); |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | |
252 | 252 | $result = $xoopsDB->query($sql) or $eh->show("0013"); |
253 | 253 | $num_results = $xoopsDB->getRowsNum($result); |
254 | - while(list($searchid, $searchnum, $created, $page, $items, $dirid, $catid) = $xoopsDB->fetchRow($result)) { |
|
254 | + while (list($searchid, $searchnum, $created, $page, $items, $dirid, $catid) = $xoopsDB->fetchRow($result)) { |
|
255 | 255 | //Split items and for each item, get item data. |
256 | 256 | if ($items != "") { |
257 | 257 | $searchresults = get_search_results($items); |
@@ -270,28 +270,28 @@ discard block |
||
270 | 270 | $offset = ($get_page - 1) * $limit; |
271 | 271 | //Calculate the number of result pages. |
272 | 272 | if ($count_results > $limit) { |
273 | - $count_pages = ceil($count_results/$limit); |
|
273 | + $count_pages = ceil($count_results / $limit); |
|
274 | 274 | } |
275 | 275 | |
276 | 276 | ob_start(); |
277 | - printf(_MD_LISTINGS_FOUND_ADV,$count_results); |
|
277 | + printf(_MD_LISTINGS_FOUND_ADV, $count_results); |
|
278 | 278 | $pages_text = ob_get_contents(); |
279 | 279 | ob_end_clean(); |
280 | 280 | |
281 | 281 | ob_start(); |
282 | - printf(_MD_PAGE_OF_PAGES,$get_page,$count_pages)."<br /><br />"; |
|
282 | + printf(_MD_PAGE_OF_PAGES, $get_page, $count_pages)."<br /><br />"; |
|
283 | 283 | $pages_top_text = ob_get_contents(); |
284 | 284 | ob_end_clean(); |
285 | 285 | |
286 | 286 | if ($count_pages >= 2) { |
287 | 287 | $pages_text .= ""._MD_PAGES."<a href=\"advancedsearch.php?ref=".$get_searchnum."&page=1&dirid=".$get_dirid."\">1</a>"; |
288 | 288 | } |
289 | - for ($i=1; $i < $count_pages; $i++) { |
|
289 | + for ($i = 1; $i < $count_pages; $i++) { |
|
290 | 290 | $page = $i + 1; |
291 | 291 | $pages_text .= " - <a href=\"advancedsearch.php?ref=".$get_searchnum."&page=".$page."&dirid=".$get_dirid."\">".$page."</a><br />"; |
292 | 292 | } |
293 | 293 | ob_start(); |
294 | - printf(_MD_NEW_SEARCH_ADV,$get_dirid); |
|
294 | + printf(_MD_NEW_SEARCH_ADV, $get_dirid); |
|
295 | 295 | $pages_text .= ob_get_contents(); |
296 | 296 | ob_end_clean(); |
297 | 297 | |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | ob_start(); |
323 | 323 | $form = new XoopsThemeForm(_MD_ADVSEARCH_FORM, 'advsearchform', 'advancedsearch.php'); |
324 | 324 | $form->setExtra('enctype="multipart/form-data"'); |
325 | - while(list($dtypeid, $dtypetitle, $dtypeoptions, $fieldtype) = $xoopsDB->fetchRow($result)) { |
|
325 | + while (list($dtypeid, $dtypetitle, $dtypeoptions, $fieldtype) = $xoopsDB->fetchRow($result)) { |
|
326 | 326 | $field = $datafieldmanager->createSearchField($dtypetitle, $dtypeid, $fieldtype, "", $dtypeoptions); |
327 | 327 | } |
328 | 328 | $form->addElement(new XoopsFormText(_MD_SEARCHSTRING, "q", 50, 250, "")); |
@@ -342,11 +342,11 @@ discard block |
||
342 | 342 | $n = 0; |
343 | 343 | ${"sql".$n} = ""; |
344 | 344 | $items = ""; |
345 | - if ( is_array($queryarray) && count($queryarray) >= 1) { |
|
345 | + if (is_array($queryarray) && count($queryarray) >= 1) { |
|
346 | 346 | $count = count($queryarray); |
347 | 347 | ${"sql".$n} = "SELECT DISTINCT i.itemid, i.title, i.uid, i.created, t.description FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d RIGHT JOIN ".$xoopsDB->prefix("efqdiralpha1_items")." i ON (d.itemid=i.itemid) LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (t.itemid=i.itemid) WHERE i.status='2'"; |
348 | 348 | ${"sql".$n} .= " AND ((d.value LIKE '%$queryarray[0]%' OR i.title LIKE '%$queryarray[0]%' OR t.description LIKE '%$queryarray[0]%')"; |
349 | - for ($i=1;$i<$count;$i++) { |
|
349 | + for ($i = 1; $i < $count; $i++) { |
|
350 | 350 | ${"sql".$n} .= " $andor "; |
351 | 351 | ${"sql".$n} .= "(d.value LIKE '%$queryarray[$i]%' OR i.title LIKE '%$queryarray[$i]%' OR t.description LIKE '%$queryarray[$i]%')"; |
352 | 352 | } |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | default: |
426 | 426 | break; |
427 | 427 | } |
428 | - if ($postvalue != '0' ) { |
|
428 | + if ($postvalue != '0') { |
|
429 | 429 | ${"sql".$n} .= $andor." (d.dtypeid = ".$dtypeid." AND d.value ".$constraint.")"; |
430 | 430 | } |
431 | 431 | ${"sql".$n} .= " ORDER BY i.created DESC"; |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | $ret = array(); |
440 | 440 | $items = array(); |
441 | 441 | $intersection = array(); |
442 | - for ($i=0;$i<$n;$i++) { |
|
442 | + for ($i = 0; $i < $n; $i++) { |
|
443 | 443 | $result = $xoopsDB->query(${"sql".$i}) or $eh->show("0013"); |
444 | 444 | $num_results = $xoopsDB->getRowsNum($result); |
445 | 445 | |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | $ret[$z]['link'] = "listing.php?item=".$myrow['itemid'].""; |
457 | 457 | $ret[$z]['title'] = $myrow['title']; |
458 | 458 | $ret[$z]['description'] = $myrow['description']; |
459 | - $ret[$z]['time'] =$myrow['created']; |
|
459 | + $ret[$z]['time'] = $myrow['created']; |
|
460 | 460 | $ret[$z]['uid'] = $myrow['uid']; |
461 | 461 | $intersection = $items; |
462 | 462 | } |
@@ -492,7 +492,7 @@ discard block |
||
492 | 492 | $ret[$z]['link'] = "listing.php?item=".$myrow['itemid'].""; |
493 | 493 | $ret[$z]['title'] = $myrow['title']; |
494 | 494 | $ret[$z]['description'] = $myrow['description']; |
495 | - $ret[$z]['time'] =$myrow['created']; |
|
495 | + $ret[$z]['time'] = $myrow['created']; |
|
496 | 496 | $ret[$z]['uid'] = $myrow['uid']; |
497 | 497 | $z++; |
498 | 498 | } |
@@ -503,7 +503,7 @@ discard block |
||
503 | 503 | } |
504 | 504 | } |
505 | 505 | |
506 | -function getNumberOfResults($searchnum=0, $limit=10) { |
|
506 | +function getNumberOfResults($searchnum = 0, $limit = 10) { |
|
507 | 507 | global $xoopsDB, $eh; |
508 | 508 | $block = array(); |
509 | 509 | $sql = "SELECT MAX(page), items FROM ".$xoopsDB->prefix("efqdiralpha1_searchresults")." WHERE searchnum = '".$searchnum."' GROUP by page"; |
@@ -512,28 +512,28 @@ discard block |
||
512 | 512 | if (!$result) { |
513 | 513 | return 0; |
514 | 514 | } |
515 | - for ($i=0; $i <$num_results; $i++) |
|
515 | + for ($i = 0; $i < $num_results; $i++) |
|
516 | 516 | { |
517 | 517 | $row = mysql_fetch_array($result); |
518 | 518 | $page = $row['MAX(page)']; |
519 | 519 | $items = $row['items']; |
520 | 520 | } |
521 | - $split_items = split(",",$items); |
|
521 | + $split_items = split(",", $items); |
|
522 | 522 | $count_lastpage = count($split_items); |
523 | 523 | $count = ($page * $limit) - ($limit - $count_lastpage); |
524 | 524 | return $count; |
525 | 525 | } |
526 | 526 | |
527 | -function mod_search_count($queryarray, $andor, $limit, $offset=0, $filter_arr) { |
|
527 | +function mod_search_count($queryarray, $andor, $limit, $offset = 0, $filter_arr) { |
|
528 | 528 | global $xoopsDB, $eh; |
529 | 529 | $count = 0; |
530 | 530 | |
531 | 531 | $sql = "SELECT COUNT(DISTINCT i.itemid) FROM ".$xoopsDB->prefix("efqdiralpha1_data")." d, ".$xoopsDB->prefix("efqdiralpha1_items")." i LEFT JOIN ".$xoopsDB->prefix("efqdiralpha1_item_text")." t ON (i.itemid=t.itemid) WHERE d.itemid=i.itemid AND i.status='2'"; |
532 | 532 | // because count() returns 1 even if a supplied variable |
533 | 533 | // is not an array, we must check if $queryarray is really an array |
534 | - if ( is_array($queryarray) && $count = count($queryarray) ) { |
|
534 | + if (is_array($queryarray) && $count = count($queryarray)) { |
|
535 | 535 | $sql .= " AND ((d.value LIKE '%$queryarray[0]%' OR i.title LIKE '%$queryarray[0]%' OR t.description LIKE '%$queryarray[0]%')"; |
536 | - for ($i=1;$i<$count;$i++) { |
|
536 | + for ($i = 1; $i < $count; $i++) { |
|
537 | 537 | $sql .= " $andor "; |
538 | 538 | $sql .= "(d.value LIKE '%$queryarray[$i]%' OR i.title LIKE '%$queryarray[$i]%' OR t.description LIKE '%$queryarray[$i]%')"; |
539 | 539 | } |
@@ -544,11 +544,11 @@ discard block |
||
544 | 544 | return $count; |
545 | 545 | } |
546 | 546 | |
547 | -function getPostedValue_text ($dtypeid = 0) { |
|
547 | +function getPostedValue_text($dtypeid = 0) { |
|
548 | 548 | global $_POST; |
549 | 549 | $postedvalues = array(); |
550 | - if ( isset($_POST["$dtypeid"]) ) { |
|
551 | - if ( isset($_POST[''.$dtypeid.'constr']) ) { |
|
550 | + if (isset($_POST["$dtypeid"])) { |
|
551 | + if (isset($_POST[''.$dtypeid.'constr'])) { |
|
552 | 552 | $constrvalue = $_POST[''.$dtypeid.'constr']; |
553 | 553 | } else { |
554 | 554 | $constrvalue = ""; |
@@ -558,12 +558,12 @@ discard block |
||
558 | 558 | } |
559 | 559 | return $postedvalues; |
560 | 560 | } |
561 | -function getPostedValue_address ($dtypeid = 0) { |
|
561 | +function getPostedValue_address($dtypeid = 0) { |
|
562 | 562 | global $_POST; |
563 | 563 | $addressfields = getAddressFields('0'); |
564 | 564 | $postedvalues = array(); |
565 | 565 | foreach ($addressfields['addressfields'] as $field => $fieldvalue) { |
566 | - if ( isset($_POST["$dtypeid$field"]) ) { |
|
566 | + if (isset($_POST["$dtypeid$field"])) { |
|
567 | 567 | $addressfield = $_POST["$dtypeid$field"]; |
568 | 568 | if ($addressfield != "") { |
569 | 569 | $postedvalues[] = array('field' => $field, 'postvalue' => $addressfield); |
@@ -573,11 +573,11 @@ discard block |
||
573 | 573 | return $postedvalues; |
574 | 574 | } |
575 | 575 | |
576 | -function getPostedValue_array ($dtypeid = 0) { |
|
576 | +function getPostedValue_array($dtypeid = 0) { |
|
577 | 577 | global $_POST; |
578 | 578 | $postvalues_arr = array(); |
579 | - if ( isset($_POST["$dtypeid"]) ) { |
|
580 | - if ( isset($_POST[''.$dtypeid.'constr']) ) { |
|
579 | + if (isset($_POST["$dtypeid"])) { |
|
580 | + if (isset($_POST[''.$dtypeid.'constr'])) { |
|
581 | 581 | $constrvalue = $_POST[''.$dtypeid.'constr']; |
582 | 582 | } else { |
583 | 583 | $constrvalue = ""; |
@@ -360,18 +360,18 @@ |
||
360 | 360 | $level = '0'; |
361 | 361 | } |
362 | 362 | switch ($level) { |
363 | - case "0": |
|
364 | - $class = "itemTableLevel0"; |
|
365 | - break; |
|
366 | - case "1"; |
|
367 | - $class = "itemTableLevel1"; |
|
368 | - break; |
|
369 | - case "2"; |
|
370 | - $class = "itemTableLevel2"; |
|
371 | - break; |
|
372 | - case "3"; |
|
373 | - $class = "itemTableLevel3"; |
|
374 | - break; |
|
363 | + case "0": |
|
364 | + $class = "itemTableLevel0"; |
|
365 | + break; |
|
366 | + case "1"; |
|
367 | + $class = "itemTableLevel1"; |
|
368 | + break; |
|
369 | + case "2"; |
|
370 | + $class = "itemTableLevel2"; |
|
371 | + break; |
|
372 | + case "3"; |
|
373 | + $class = "itemTableLevel3"; |
|
374 | + break; |
|
375 | 375 | } |
376 | 376 | $xoopsTpl->append('listings', array('fields' => $sections, 'id' => $itemid, 'catid' => $get_catid, 'logourl' => $myts->makeTboxData4Show($logourl), 'title' => $myts->makeTboxData4Show($itemtitle).$new.$pop, 'status' => $status, 'created' => formatTimestamp($created,"m"), 'rating' => number_format($rating, 2), 'category' => $path, 'description' => $myts->makeTareaData4Show($description,0), 'adminlink' => $adminlink, 'hits' => $hits, 'rating' => $rating, 'votes' => $votestring, 'class' => $class, 'mail_subject' => rawurlencode(sprintf(_MD_INTERESTING_LISTING,$xoopsConfig['sitename'])), 'mail_body' => rawurlencode(sprintf(_MD_INTERESTING_LISTING_FOUND,$xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/'.$moddir.'/listing.php?catid='.$get_catid.'&item='.$itemid))); |
377 | 377 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | // Based upon the mylinks and the mxDirectory modules // |
31 | 31 | // ------------------------------------------------------------------------- // |
32 | 32 | include "header.php"; |
33 | -$myts =& MyTextSanitizer::getInstance(); // MyTextSanitizer object |
|
33 | +$myts = & MyTextSanitizer::getInstance(); // MyTextSanitizer object |
|
34 | 34 | include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; |
35 | 35 | include_once XOOPS_ROOT_PATH."/include/xoopscodes.php"; |
36 | 36 | include_once XOOPS_ROOT_PATH.'/class/module.errorhandler.php'; |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | $datafieldmanager = new efqDataFieldManager(); |
43 | 43 | $moddir = $xoopsModule->getvar("dirname"); |
44 | 44 | $eh = new ErrorHandler; |
45 | -$mytree = new XoopsTree($xoopsDB->prefix("efqdiralpha1_cat"),"cid","pid"); |
|
46 | -$efqtree = new efqTree($xoopsDB->prefix("efqdiralpha1_cat"),"cid","pid"); |
|
45 | +$mytree = new XoopsTree($xoopsDB->prefix("efqdiralpha1_cat"), "cid", "pid"); |
|
46 | +$efqtree = new efqTree($xoopsDB->prefix("efqdiralpha1_cat"), "cid", "pid"); |
|
47 | 47 | |
48 | 48 | //Check if a category is selected. |
49 | 49 | if (!empty($_GET['catid'])) { |
@@ -61,11 +61,11 @@ discard block |
||
61 | 61 | |
62 | 62 | if ($get_dirid == '0' && $get_catid == '0') { |
63 | 63 | //Show an overview of directories with directory title, image and description for each directory. |
64 | - $result=$xoopsDB->query("SELECT dirid, name, descr, img FROM ".$xoopsDB->prefix("efqdiralpha1_dir")." WHERE open = '1' ORDER BY name") or $eh->show("0013"); |
|
64 | + $result = $xoopsDB->query("SELECT dirid, name, descr, img FROM ".$xoopsDB->prefix("efqdiralpha1_dir")." WHERE open = '1' ORDER BY name") or $eh->show("0013"); |
|
65 | 65 | $num_results = $xoopsDB->getRowsNum($result); |
66 | 66 | if ($num_results == 1) { |
67 | 67 | if ($xoopsModuleConfig['autoshowonedir'] == 1) { |
68 | - while(list($dirid, $name, $descr, $img) = $xoopsDB->fetchRow($result)) { |
|
68 | + while (list($dirid, $name, $descr, $img) = $xoopsDB->fetchRow($result)) { |
|
69 | 69 | $get_dirid = $dirid; |
70 | 70 | } |
71 | 71 | } else { |
@@ -74,8 +74,8 @@ discard block |
||
74 | 74 | $xoopsTpl->assign('xoops_module_header', $xoops_module_header); |
75 | 75 | $xoopsTpl->assign('lang_directories', _MD_DIRECTORIES_HEADER); |
76 | 76 | $xoopsTpl->assign('moddir', $moddir); |
77 | - while(list($dirid, $name, $descr, $img) = $xoopsDB->fetchRow($result)) { |
|
78 | - if ($img != ""){ |
|
77 | + while (list($dirid, $name, $descr, $img) = $xoopsDB->fetchRow($result)) { |
|
78 | + if ($img != "") { |
|
79 | 79 | $img = XOOPS_URL."/modules/$moddir/uploads/".$myts->makeTboxData4Show($img); |
80 | 80 | } else { |
81 | 81 | $img = XOOPS_URL."/modules/$moddir/images/nopicture.gif"; |
@@ -89,8 +89,8 @@ discard block |
||
89 | 89 | $xoopsTpl->assign('xoops_module_header', $xoops_module_header); |
90 | 90 | $xoopsTpl->assign('lang_directories', _MD_DIRECTORIES_HEADER); |
91 | 91 | $xoopsTpl->assign('moddir', $moddir); |
92 | - while(list($dirid, $name, $descr, $img) = $xoopsDB->fetchRow($result)) { |
|
93 | - if ($img != ""){ |
|
92 | + while (list($dirid, $name, $descr, $img) = $xoopsDB->fetchRow($result)) { |
|
93 | + if ($img != "") { |
|
94 | 94 | $img = XOOPS_URL."/modules/$moddir/uploads/".$myts->makeTboxData4Show($img); |
95 | 95 | } else { |
96 | 96 | $img = XOOPS_URL."/modules/$moddir/images/nopicture.gif"; |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $xoopsTpl->append('directories', array('image' => $img, 'id' => $dirid, 'title' => $name, 'descr' => $descr)); |
99 | 99 | } |
100 | 100 | } else { |
101 | - redirect_header(XOOPS_URL,2,_MD_NOACTIVEDIRECTORIES); |
|
101 | + redirect_header(XOOPS_URL, 2, _MD_NOACTIVEDIRECTORIES); |
|
102 | 102 | exit(); |
103 | 103 | } |
104 | 104 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | $dirid = $get_dirid; |
115 | 115 | } |
116 | 116 | ob_start(); |
117 | - printf(_MD_SEARCH_ADV,$dirid); |
|
117 | + printf(_MD_SEARCH_ADV, $dirid); |
|
118 | 118 | $lang_adv_search = ob_get_contents(); |
119 | 119 | ob_end_clean(); |
120 | 120 | $searchform = "<form action=\"search.php\" name=\"search\" id=\"search\" method=\"get\">"; |
@@ -124,25 +124,25 @@ discard block |
||
124 | 124 | $pathstring .= $efqtree->getNicePathFromId($get_catid, "title", "index.php?dirid=".$dirid."&op="); |
125 | 125 | $xoopsTpl->assign('category_path', $pathstring); |
126 | 126 | |
127 | - if (isset($xoopsUser) && $xoopsUser != null ) { |
|
127 | + if (isset($xoopsUser) && $xoopsUser != null) { |
|
128 | 128 | $submitlink = "<a href=\"submit.php?dirid=".$dirid."\"><img src=\"".XOOPS_URL."/modules/".$moddir."/images/".$xoopsConfig['language']."/listing-new.gif\" alt=\""._MD_SUBMITLISTING."\" title=\""._MD_SUBMITLISTING."\" /></a>"; |
129 | 129 | $xoopsTpl->assign('submit_link', $submitlink); |
130 | 130 | } |
131 | 131 | |
132 | 132 | if ($get_catid == 0) { |
133 | - $result=$xoopsDB->query("SELECT cid, title, img FROM ".$xoopsDB->prefix("efqdiralpha1_cat")." WHERE pid = '0' AND dirid = '".$get_dirid."' ORDER BY title") or $eh->show("0013"); |
|
133 | + $result = $xoopsDB->query("SELECT cid, title, img FROM ".$xoopsDB->prefix("efqdiralpha1_cat")." WHERE pid = '0' AND dirid = '".$get_dirid."' ORDER BY title") or $eh->show("0013"); |
|
134 | 134 | } else { |
135 | - $result=$xoopsDB->query("SELECT cid, title, img FROM ".$xoopsDB->prefix("efqdiralpha1_cat")." WHERE pid = '".$get_catid."' ORDER BY title") or $eh->show("0013"); |
|
135 | + $result = $xoopsDB->query("SELECT cid, title, img FROM ".$xoopsDB->prefix("efqdiralpha1_cat")." WHERE pid = '".$get_catid."' ORDER BY title") or $eh->show("0013"); |
|
136 | 136 | } |
137 | 137 | $num_results = mysql_num_rows($result); |
138 | 138 | if ($num_results == 0 && isset($_GET['dirid'])) { |
139 | 139 | $xoopsTpl->assign('lang_noresults', _MD_NORESULTS); |
140 | 140 | } else { |
141 | 141 | $count = 1; |
142 | - while($myrow = $xoopsDB->fetchArray($result)) { |
|
142 | + while ($myrow = $xoopsDB->fetchArray($result)) { |
|
143 | 143 | $totallisting = getTotalItems($myrow['cid'], 2); |
144 | 144 | $img = ''; |
145 | - if ($myrow['img'] && $myrow['img'] != ""){ |
|
145 | + if ($myrow['img'] && $myrow['img'] != "") { |
|
146 | 146 | $img = XOOPS_URL."/modules/$moddir/uploads/".$myts->makeTboxData4Show($myrow['img']); |
147 | 147 | } |
148 | 148 | $arr = array(); |
@@ -150,13 +150,13 @@ discard block |
||
150 | 150 | $space = 0; |
151 | 151 | $chcount = 0; |
152 | 152 | $subcategories = ''; |
153 | - foreach($arr as $ele){ |
|
153 | + foreach ($arr as $ele) { |
|
154 | 154 | $chtitle = $myts->makeTboxData4Show($ele['title']); |
155 | 155 | if ($chcount > 5) { |
156 | 156 | $subcategories .= "..."; |
157 | 157 | break; |
158 | 158 | } |
159 | - if ($space>0) { |
|
159 | + if ($space > 0) { |
|
160 | 160 | $subcategories .= ", "; |
161 | 161 | } |
162 | 162 | $subcategories .= "<a class=\"subcategory\" href=\"".XOOPS_URL."/modules/$moddir/index.php?catid=".$ele['cid']."\">".$chtitle."</a>"; |
@@ -193,14 +193,14 @@ discard block |
||
193 | 193 | $xoopsTpl->assign('lang_lastupdate', _MD_LASTUPDATEC); |
194 | 194 | $xoopsTpl->assign('lang_hits', _MD_HITSC); |
195 | 195 | $xoopsTpl->assign('lang_modify', _MD_MODIFY); |
196 | - $xoopsTpl->assign('lang_listings' , _MD_LATESTLIST); |
|
197 | - $xoopsTpl->assign('lang_category' , _MD_CATEGORYC); |
|
198 | - $xoopsTpl->assign('lang_visit' , _MD_VISIT); |
|
196 | + $xoopsTpl->assign('lang_listings', _MD_LATESTLIST); |
|
197 | + $xoopsTpl->assign('lang_category', _MD_CATEGORYC); |
|
198 | + $xoopsTpl->assign('lang_visit', _MD_VISIT); |
|
199 | 199 | $sections = array(); |
200 | 200 | if ($get_catid == 0) { |
201 | 201 | $efqListingHandler = new efqListingHandler(); |
202 | 202 | $directorylistings = $efqListingHandler->getListingsByDirectory($get_dirid); |
203 | - while(list($itemid, $logourl, $uid, $status, $created, $ltitle, $hits, $rating, $votes, $type, $dirid, $description) = $xoopsDB->fetchRow($directorylistings)) { |
|
203 | + while (list($itemid, $logourl, $uid, $status, $created, $ltitle, $hits, $rating, $votes, $type, $dirid, $description) = $xoopsDB->fetchRow($directorylistings)) { |
|
204 | 204 | if ($isadmin) { |
205 | 205 | $adminlink = '<a href="'.XOOPS_URL.'/modules/'.$moddir.'/admin/index.php?op=edit&item='.$itemid.'"><img src="'.XOOPS_URL.'/modules/'.$moddir.'/images/editicon.gif" border="0" alt="'._MD_EDITTHISLINK.'" /></a>'; |
206 | 206 | } else { |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | if ($votes == 1) { |
210 | 210 | $votestring = _MD_ONEVOTE; |
211 | 211 | } else { |
212 | - $votestring = sprintf(_MD_NUMVOTES,$votes); |
|
212 | + $votestring = sprintf(_MD_NUMVOTES, $votes); |
|
213 | 213 | } |
214 | 214 | |
215 | 215 | if ($xoopsModuleConfig['showdatafieldsincat'] == '1') { |
@@ -241,10 +241,10 @@ discard block |
||
241 | 241 | $coupons = $coupon_handler->getCountByLink($itemid); |
242 | 242 | $path = $efqtree->getPathFromId($get_catid, "title"); |
243 | 243 | $path = substr($path, 1); |
244 | - $path = str_replace("/"," <img src='".XOOPS_URL."/modules/".$moddir."/images/arrow.gif' board='0' alt=''> ",$path); |
|
244 | + $path = str_replace("/", " <img src='".XOOPS_URL."/modules/".$moddir."/images/arrow.gif' board='0' alt=''> ", $path); |
|
245 | 245 | $new = newlinkgraphic($created, $status); |
246 | 246 | $pop = popgraphic($hits); |
247 | - $xoopsTpl->append('listings', array('fields' => $sections, 'coupons' => $coupons, 'catid' => $get_catid, 'id' => $itemid, 'rating' => number_format($rating, 2), 'title' => $myts->makeTboxData4Show($ltitle).$pop, 'type' => $type, 'logourl' => $myts->makeTboxData4Show($logourl), 'description' => $myts->makeTareaData4Show($description,0), 'adminlink' => $adminlink, 'hits' => $hits, 'votes' => $votestring, 'mail_subject' => rawurlencode(sprintf(_MD_INTERESTING_LISTING,$xoopsConfig['sitename'])), 'mail_body' => rawurlencode(sprintf(_MD_INTERESTING_LISTING_FOUND,$xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/'.$moddir.'/singleitem.php?cid='.$get_catid.'&item='.$itemid))); |
|
247 | + $xoopsTpl->append('listings', array('fields' => $sections, 'coupons' => $coupons, 'catid' => $get_catid, 'id' => $itemid, 'rating' => number_format($rating, 2), 'title' => $myts->makeTboxData4Show($ltitle).$pop, 'type' => $type, 'logourl' => $myts->makeTboxData4Show($logourl), 'description' => $myts->makeTareaData4Show($description, 0), 'adminlink' => $adminlink, 'hits' => $hits, 'votes' => $votestring, 'mail_subject' => rawurlencode(sprintf(_MD_INTERESTING_LISTING, $xoopsConfig['sitename'])), 'mail_body' => rawurlencode(sprintf(_MD_INTERESTING_LISTING_FOUND, $xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/'.$moddir.'/singleitem.php?cid='.$get_catid.'&item='.$itemid))); |
|
248 | 248 | } |
249 | 249 | } else { |
250 | 250 | if (isset($_GET['show'])) { |
@@ -254,16 +254,16 @@ discard block |
||
254 | 254 | } |
255 | 255 | $min = isset($_GET['min']) ? intval($_GET['min']) : 0; |
256 | 256 | $max = $min + $show; |
257 | - if(isset($_GET['orderby'])) { |
|
257 | + if (isset($_GET['orderby'])) { |
|
258 | 258 | $orderby = convertorderbyin($_GET['orderby']); |
259 | 259 | } else { |
260 | 260 | $orderby = "level DESC"; |
261 | 261 | } |
262 | - $fullcountresult=$xoopsDB->query("select count(*) from ".$xoopsDB->prefix("efqdiralpha1_items")." i, ".$xoopsDB->prefix("efqdiralpha1_item_x_cat")." x WHERE i.itemid=x.itemid AND x.cid=$get_catid AND i.status='2'"); |
|
262 | + $fullcountresult = $xoopsDB->query("select count(*) from ".$xoopsDB->prefix("efqdiralpha1_items")." i, ".$xoopsDB->prefix("efqdiralpha1_item_x_cat")." x WHERE i.itemid=x.itemid AND x.cid=$get_catid AND i.status='2'"); |
|
263 | 263 | list($numrows) = $xoopsDB->fetchRow($fullcountresult); |
264 | 264 | $totalcount = $numrows; |
265 | 265 | $page_nav = ''; |
266 | - if($numrows>0){ |
|
266 | + if ($numrows > 0) { |
|
267 | 267 | /*if ($xoopsModuleConfig['allowcomments'] == 1) { |
268 | 268 | $xoopsTpl->assign('allowcomments', true); |
269 | 269 | $xoopsTpl->assign('lang_comments' , _COMMENTS); |
@@ -280,14 +280,14 @@ discard block |
||
280 | 280 | $xoopsTpl->assign('lang_rating', _MD_RATINGC); |
281 | 281 | $xoopsTpl->assign('lang_ratethissite', _MD_RATETHISSITE); |
282 | 282 | } |
283 | - $xoopsTpl->assign('lang_listings' , _MD_LISTINGS); |
|
283 | + $xoopsTpl->assign('lang_listings', _MD_LISTINGS); |
|
284 | 284 | $xoopsTpl->assign('category_id', $get_catid); |
285 | 285 | $xoopsTpl->assign('lang_description', _MD_DESCRIPTIONC); |
286 | 286 | $xoopsTpl->assign('lang_lastupdate', _MD_LASTUPDATEC); |
287 | 287 | $xoopsTpl->assign('lang_hits', _MD_HITSC); |
288 | 288 | $xoopsTpl->assign('lang_modify', _MD_MODIFY); |
289 | - $xoopsTpl->assign('lang_category' , _MD_CATEGORYC); |
|
290 | - $xoopsTpl->assign('lang_visit' , _MD_VISIT); |
|
289 | + $xoopsTpl->assign('lang_category', _MD_CATEGORYC); |
|
290 | + $xoopsTpl->assign('lang_visit', _MD_VISIT); |
|
291 | 291 | $xoopsTpl->assign('show_listings', true); |
292 | 292 | |
293 | 293 | $efqListingHandler = new efqListingHandler(); |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | $numrows = $xoopsDB->getRowsNum($categorylistings); |
296 | 296 | |
297 | 297 | //if 2 or more items in result, show the sort menu |
298 | - if($numrows>1){ |
|
298 | + if ($numrows > 1) { |
|
299 | 299 | |
300 | 300 | $xoopsTpl->assign('show_nav', true); |
301 | 301 | $orderbyTrans = convertorderbytrans($orderby); |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | if ($xoopsModuleConfig['showlinkimages'] == 1) { |
312 | 312 | $xoopsTpl->assign('showlinkimages', 1); |
313 | 313 | } |
314 | - while(list($itemid, $logourl, $uid, $status, $created, $itemtitle, $hits, $rating, $votes, $typeid, $dirid, $level, $description, $cid) = $xoopsDB->fetchRow($categorylistings)) { |
|
314 | + while (list($itemid, $logourl, $uid, $status, $created, $itemtitle, $hits, $rating, $votes, $typeid, $dirid, $level, $description, $cid) = $xoopsDB->fetchRow($categorylistings)) { |
|
315 | 315 | if ($isadmin) { |
316 | 316 | if ($xoopsModuleConfig['showlinkimages'] == 1) { |
317 | 317 | $adminlink = '<a href="'.XOOPS_URL.'/modules/'.$moddir.'/admin/index.php?op=edit&item='.$itemid.'"><img src="'.XOOPS_URL.'/modules/'.$moddir.'/images/editicon.gif" border="0" alt="'._MD_EDITTHISLISTING.'" /></a>'; |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | if ($votes == 1) { |
325 | 325 | $votestring = _MD_ONEVOTE; |
326 | 326 | } else { |
327 | - $votestring = sprintf(_MD_NUMVOTES,$votes); |
|
327 | + $votestring = sprintf(_MD_NUMVOTES, $votes); |
|
328 | 328 | } |
329 | 329 | |
330 | 330 | if ($xoopsModuleConfig['showdatafieldsincat'] == '1') { |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | } |
354 | 354 | $path = $efqtree->getPathFromId($get_catid, "title"); |
355 | 355 | $path = substr($path, 1); |
356 | - $path = str_replace("/"," <img src='".XOOPS_URL."/modules/".$moddir."/images/arrow.gif' board='0' alt=''> ",$path); |
|
356 | + $path = str_replace("/", " <img src='".XOOPS_URL."/modules/".$moddir."/images/arrow.gif' board='0' alt=''> ", $path); |
|
357 | 357 | $new = newlinkgraphic($created, $status); |
358 | 358 | $pop = popgraphic($hits); |
359 | 359 | if ($level == NULL) { |
@@ -373,22 +373,22 @@ discard block |
||
373 | 373 | $class = "itemTableLevel3"; |
374 | 374 | break; |
375 | 375 | } |
376 | - $xoopsTpl->append('listings', array('fields' => $sections, 'id' => $itemid, 'catid' => $get_catid, 'logourl' => $myts->makeTboxData4Show($logourl), 'title' => $myts->makeTboxData4Show($itemtitle).$new.$pop, 'status' => $status, 'created' => formatTimestamp($created,"m"), 'rating' => number_format($rating, 2), 'category' => $path, 'description' => $myts->makeTareaData4Show($description,0), 'adminlink' => $adminlink, 'hits' => $hits, 'rating' => $rating, 'votes' => $votestring, 'class' => $class, 'mail_subject' => rawurlencode(sprintf(_MD_INTERESTING_LISTING,$xoopsConfig['sitename'])), 'mail_body' => rawurlencode(sprintf(_MD_INTERESTING_LISTING_FOUND,$xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/'.$moddir.'/listing.php?catid='.$get_catid.'&item='.$itemid))); |
|
376 | + $xoopsTpl->append('listings', array('fields' => $sections, 'id' => $itemid, 'catid' => $get_catid, 'logourl' => $myts->makeTboxData4Show($logourl), 'title' => $myts->makeTboxData4Show($itemtitle).$new.$pop, 'status' => $status, 'created' => formatTimestamp($created, "m"), 'rating' => number_format($rating, 2), 'category' => $path, 'description' => $myts->makeTareaData4Show($description, 0), 'adminlink' => $adminlink, 'hits' => $hits, 'rating' => $rating, 'votes' => $votestring, 'class' => $class, 'mail_subject' => rawurlencode(sprintf(_MD_INTERESTING_LISTING, $xoopsConfig['sitename'])), 'mail_body' => rawurlencode(sprintf(_MD_INTERESTING_LISTING_FOUND, $xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/'.$moddir.'/listing.php?catid='.$get_catid.'&item='.$itemid))); |
|
377 | 377 | } |
378 | 378 | $orderby = convertorderbyout($orderby); |
379 | 379 | //Calculates how many pages exist. Which page one should be on, etc... |
380 | 380 | $listingpages = ceil($totalcount / $show); |
381 | 381 | |
382 | 382 | //Page Numbering |
383 | - if ($listingpages!=1 && $listingpages!=0) { |
|
383 | + if ($listingpages != 1 && $listingpages != 0) { |
|
384 | 384 | $get_catid = intval($_GET['catid']); |
385 | 385 | $prev = $min - $show; |
386 | - if ($prev>=0) { |
|
386 | + if ($prev >= 0) { |
|
387 | 387 | $page_nav .= "<a href='index.php?catid=".$get_catid."&min=$prev&orderby=$orderby&show=$show'><b><u>«</u></b></a> "; |
388 | 388 | } |
389 | 389 | $counter = 1; |
390 | 390 | $currentpage = ($max / $show); |
391 | - while ( $counter<=$listingpages ) { |
|
391 | + while ($counter <= $listingpages) { |
|
392 | 392 | $mintemp = ($show * $counter) - $show; |
393 | 393 | if ($counter == $currentpage) { |
394 | 394 | $page_nav .= "<strong>(".$counter.")</strong> "; |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | } |
398 | 398 | $counter++; |
399 | 399 | } |
400 | - if ( $numrows>$max ) { |
|
400 | + if ($numrows > $max) { |
|
401 | 401 | $page_nav .= "<a href='index.php?catid=".$get_catid."&min=".$max."&orderby=".$orderby."&show=".$show."'>"; |
402 | 402 | $page_nav .= "<strong><u>»</u></strong></a>"; |
403 | 403 | } |
@@ -29,9 +29,9 @@ |
||
29 | 29 | // Purpose: Create a business directory for xoops. // |
30 | 30 | // Based upon the mylinks and the mxDirectory modules // |
31 | 31 | // ------------------------------------------------------------------------- // |
32 | -define("_MB_EFQDIR_MENU","Directories"); |
|
33 | -define("_MB_EFQDIR_DISP","Display"); |
|
34 | -define("_MB_EFQDIR_LISTINGS","Listings"); |
|
35 | -define("_MB_EFQDIR_CHARS","Characters"); |
|
36 | -define("_MB_EFQDIR_LENGTH","Lenght"); |
|
32 | +define("_MB_EFQDIR_MENU", "Directories"); |
|
33 | +define("_MB_EFQDIR_DISP", "Display"); |
|
34 | +define("_MB_EFQDIR_LISTINGS", "Listings"); |
|
35 | +define("_MB_EFQDIR_CHARS", "Characters"); |
|
36 | +define("_MB_EFQDIR_LENGTH", "Lenght"); |
|
37 | 37 | ?> |
@@ -29,456 +29,456 @@ discard block |
||
29 | 29 | // Based upon the mylinks and the mxDirectory modules // |
30 | 30 | // ------------------------------------------------------------------------- // |
31 | 31 | //Submit form |
32 | -define("_MD_SELECT","Select yes/no"); |
|
33 | -define("_MD_CATEGORIES","Categories"); |
|
34 | -define("_MD_ERROR_NOT_SAVED","The record was not saved. Please contact the site administrator."); |
|
35 | - |
|
36 | -define("_MD_THANKSFORINFO","Thanks for the information. We'll look into your request shortly."); |
|
37 | -define("_MD_THANKSFORHELP","Thank you for helping to maintain this directory's integrity."); |
|
38 | -define("_MD_FORSECURITY","For security reasons your user name and IP address will also be temporarily recorded."); |
|
39 | - |
|
40 | -define("_MD_SEARCHFOR","Search for"); |
|
41 | -define("_MD_ANY","ANY"); |
|
42 | -define("_MD_SEARCH","Search"); |
|
43 | -define("_MD_NORESULTS","No results were found."); |
|
44 | - |
|
45 | -define("_MD_MAIN","Main"); |
|
46 | -define("_MD_POPULAR","Popular"); |
|
47 | -define("_MD_TOPRATED","Top Rated"); |
|
48 | - |
|
49 | -define("_MD_EDIT","Edit"); |
|
50 | -define("_MD_UPDATE","Update"); |
|
51 | -define("_MD_CONTINUE","Continue"); |
|
52 | -define("_MD_FINISHED","Finished"); |
|
53 | - |
|
54 | -define("_MD_CREATED","Created"); |
|
55 | - |
|
56 | -define("_MD_NEWTHISWEEK","New this week"); |
|
57 | -define("_MD_UPTHISWEEK","Updated this week"); |
|
58 | - |
|
59 | -define("_MD_POPULARITYLTOM","Popularity (Least to Most Hits)"); |
|
60 | -define("_MD_POPULARITYMTOL","Popularity (Most to Least Hits)"); |
|
61 | -define("_MD_TITLEATOZ","Title (A to Z)"); |
|
62 | -define("_MD_TITLEZTOA","Title (Z to A)"); |
|
63 | -define("_MD_DATEOLD","Date (Old Links Listed First)"); |
|
64 | -define("_MD_DATENEW","Date (New Links Listed First)"); |
|
65 | -define("_MD_RATINGLTOH","Rating (Lowest Score to Highest Score)"); |
|
66 | -define("_MD_RATINGHTOL","Rating (Highest Score to Lowest Score)"); |
|
67 | - |
|
68 | -define("_MD_NOSHOTS","No Screenshots Available"); |
|
69 | -define("_MD_EDITTHISLINK","Edit This Link"); |
|
70 | - |
|
71 | -define("_MD_DESCRIPTIONC","Description: "); |
|
72 | -define("_MD_EMAILC","Email: "); |
|
73 | -define("_MD_CATEGORYC","Category: "); |
|
74 | -define("_MD_LASTUPDATEC","Last Update: "); |
|
75 | -define("_MD_HITSC","Hits: "); |
|
76 | -define("_MD_RATINGC","Rating: "); |
|
77 | -define("_MD_ONEVOTE","1 vote"); |
|
78 | -define("_MD_NUMVOTES","%s votes"); |
|
79 | -define("_MD_RATETHISSITE","Rate this listing"); |
|
80 | -define("_MD_MODIFY","Modify"); |
|
81 | -define("_MD_REPORTBROKEN","Report Broken Link"); |
|
82 | -define("_MD_TELLAFRIEND","Tell a Friend"); |
|
83 | -define("_MD_SPECIALOFFERS_FOR","Special offers for:"); |
|
84 | - |
|
85 | -define("_MD_THEREARE","There are <b>%s</b> Listings in this directory"); |
|
86 | -define("_MD_LATESTLIST","Latest Listings"); |
|
87 | - |
|
88 | -define("_MD_REQUESTMOD","Request Link Modification"); |
|
89 | -define("_MD_LINKID","Link ID: "); |
|
90 | -define("_MD_SITETITLE","Website Title: "); |
|
91 | -define("_MD_SITEURL","Website URL: "); |
|
92 | -define("_MD_OPTIONS:","Options: "); |
|
93 | -define("_MD_OPTIONS","Options"); |
|
94 | -define("_MD_OPTIONS_EXPL","Seperate list of options by using the | sign."); |
|
32 | +define("_MD_SELECT", "Select yes/no"); |
|
33 | +define("_MD_CATEGORIES", "Categories"); |
|
34 | +define("_MD_ERROR_NOT_SAVED", "The record was not saved. Please contact the site administrator."); |
|
35 | + |
|
36 | +define("_MD_THANKSFORINFO", "Thanks for the information. We'll look into your request shortly."); |
|
37 | +define("_MD_THANKSFORHELP", "Thank you for helping to maintain this directory's integrity."); |
|
38 | +define("_MD_FORSECURITY", "For security reasons your user name and IP address will also be temporarily recorded."); |
|
39 | + |
|
40 | +define("_MD_SEARCHFOR", "Search for"); |
|
41 | +define("_MD_ANY", "ANY"); |
|
42 | +define("_MD_SEARCH", "Search"); |
|
43 | +define("_MD_NORESULTS", "No results were found."); |
|
44 | + |
|
45 | +define("_MD_MAIN", "Main"); |
|
46 | +define("_MD_POPULAR", "Popular"); |
|
47 | +define("_MD_TOPRATED", "Top Rated"); |
|
48 | + |
|
49 | +define("_MD_EDIT", "Edit"); |
|
50 | +define("_MD_UPDATE", "Update"); |
|
51 | +define("_MD_CONTINUE", "Continue"); |
|
52 | +define("_MD_FINISHED", "Finished"); |
|
53 | + |
|
54 | +define("_MD_CREATED", "Created"); |
|
55 | + |
|
56 | +define("_MD_NEWTHISWEEK", "New this week"); |
|
57 | +define("_MD_UPTHISWEEK", "Updated this week"); |
|
58 | + |
|
59 | +define("_MD_POPULARITYLTOM", "Popularity (Least to Most Hits)"); |
|
60 | +define("_MD_POPULARITYMTOL", "Popularity (Most to Least Hits)"); |
|
61 | +define("_MD_TITLEATOZ", "Title (A to Z)"); |
|
62 | +define("_MD_TITLEZTOA", "Title (Z to A)"); |
|
63 | +define("_MD_DATEOLD", "Date (Old Links Listed First)"); |
|
64 | +define("_MD_DATENEW", "Date (New Links Listed First)"); |
|
65 | +define("_MD_RATINGLTOH", "Rating (Lowest Score to Highest Score)"); |
|
66 | +define("_MD_RATINGHTOL", "Rating (Highest Score to Lowest Score)"); |
|
67 | + |
|
68 | +define("_MD_NOSHOTS", "No Screenshots Available"); |
|
69 | +define("_MD_EDITTHISLINK", "Edit This Link"); |
|
70 | + |
|
71 | +define("_MD_DESCRIPTIONC", "Description: "); |
|
72 | +define("_MD_EMAILC", "Email: "); |
|
73 | +define("_MD_CATEGORYC", "Category: "); |
|
74 | +define("_MD_LASTUPDATEC", "Last Update: "); |
|
75 | +define("_MD_HITSC", "Hits: "); |
|
76 | +define("_MD_RATINGC", "Rating: "); |
|
77 | +define("_MD_ONEVOTE", "1 vote"); |
|
78 | +define("_MD_NUMVOTES", "%s votes"); |
|
79 | +define("_MD_RATETHISSITE", "Rate this listing"); |
|
80 | +define("_MD_MODIFY", "Modify"); |
|
81 | +define("_MD_REPORTBROKEN", "Report Broken Link"); |
|
82 | +define("_MD_TELLAFRIEND", "Tell a Friend"); |
|
83 | +define("_MD_SPECIALOFFERS_FOR", "Special offers for:"); |
|
84 | + |
|
85 | +define("_MD_THEREARE", "There are <b>%s</b> Listings in this directory"); |
|
86 | +define("_MD_LATESTLIST", "Latest Listings"); |
|
87 | + |
|
88 | +define("_MD_REQUESTMOD", "Request Link Modification"); |
|
89 | +define("_MD_LINKID", "Link ID: "); |
|
90 | +define("_MD_SITETITLE", "Website Title: "); |
|
91 | +define("_MD_SITEURL", "Website URL: "); |
|
92 | +define("_MD_OPTIONS:", "Options: "); |
|
93 | +define("_MD_OPTIONS", "Options"); |
|
94 | +define("_MD_OPTIONS_EXPL", "Seperate list of options by using the | sign."); |
|
95 | 95 | define("_MD_NOTIFYAPPROVE", "Notify me when this link is approved"); |
96 | -define("_MD_SHOTIMAGE","Screenshot Img: "); |
|
97 | -define("_MD_SENDREQUEST","Send Request"); |
|
98 | - |
|
99 | -define("_MD_VOTEAPPRE","Your vote is appreciated."); |
|
100 | -define("_MD_THANKURATE","Thank you for taking the time to rate a site here at %s."); |
|
101 | -define("_MD_VOTEFROMYOU","Input from users such as yourself will help other visitors better decide which link to choose."); |
|
102 | -define("_MD_VOTEONCE","Please do not vote for the same resource more than once."); |
|
103 | -define("_MD_RATINGSCALE","The scale is 1 - 10, with 1 being poor and 10 being excellent."); |
|
104 | -define("_MD_BEOBJECTIVE","Please be objective, if everyone receives a 1 or a 10, the ratings aren't very useful."); |
|
105 | -define("_MD_DONOTVOTE","Do not vote for your own resource."); |
|
106 | -define("_MD_RATEIT","Rate It!"); |
|
107 | -define("_MD_NORESULTS_PLEASE_CREATE_DIRECTORY","No directories were found. Please create a new directory."); |
|
108 | - |
|
109 | - |
|
110 | -define("_MD_WHENAPPROVED","You'll receive an E-mail when it has been approved."); |
|
111 | -define("_MD_SUBMITONCE","Please submit your link only once."); |
|
112 | -define("_MD_ALLPENDING","All link information is posted pending verification."); |
|
113 | -define("_MD_DONTABUSE","For security reasons your Username and IP will temporarily be recorded."); |
|
114 | -define("_MD_TAKESHOT","It may take several days for your website link to be added to our database."); |
|
115 | - |
|
116 | -define("_MD_RANK","Rank"); |
|
117 | -define("_MD_CATEGORY","Category"); |
|
118 | -define("_MD_DESCRIPTION","Description"); |
|
119 | -define("_MD_HITS","Hits"); |
|
120 | -define("_MD_RATING","Rating"); |
|
121 | -define("_MD_VOTE","Vote"); |
|
122 | -define("_MD_TOP10","%s Top 10"); // %s is a listing category title |
|
123 | - |
|
124 | -define("_MD_SEARCHRESULTS","Search results for <b>%s</b>:"); // %s is search keywords |
|
125 | -define("_MD_SORTBY","Sort by:"); |
|
126 | -define("_MD_TITLE","Title"); |
|
127 | -define("_MD_DATE","Date"); |
|
128 | -define("_MD_POPULARITY","Popularity"); |
|
129 | -define("_MD_CURSORTEDBY","Sites currently sorted by: %s"); |
|
130 | -define("_MD_PREVIOUS","Previous"); |
|
131 | -define("_MD_NEXT","Next"); |
|
132 | -define("_MD_NOMATCH","No matches found to your query"); |
|
133 | - |
|
134 | -define("_MD_SUBMIT","Submit"); |
|
135 | -define("_MD_CANCEL","Cancel"); |
|
96 | +define("_MD_SHOTIMAGE", "Screenshot Img: "); |
|
97 | +define("_MD_SENDREQUEST", "Send Request"); |
|
98 | + |
|
99 | +define("_MD_VOTEAPPRE", "Your vote is appreciated."); |
|
100 | +define("_MD_THANKURATE", "Thank you for taking the time to rate a site here at %s."); |
|
101 | +define("_MD_VOTEFROMYOU", "Input from users such as yourself will help other visitors better decide which link to choose."); |
|
102 | +define("_MD_VOTEONCE", "Please do not vote for the same resource more than once."); |
|
103 | +define("_MD_RATINGSCALE", "The scale is 1 - 10, with 1 being poor and 10 being excellent."); |
|
104 | +define("_MD_BEOBJECTIVE", "Please be objective, if everyone receives a 1 or a 10, the ratings aren't very useful."); |
|
105 | +define("_MD_DONOTVOTE", "Do not vote for your own resource."); |
|
106 | +define("_MD_RATEIT", "Rate It!"); |
|
107 | +define("_MD_NORESULTS_PLEASE_CREATE_DIRECTORY", "No directories were found. Please create a new directory."); |
|
108 | + |
|
109 | + |
|
110 | +define("_MD_WHENAPPROVED", "You'll receive an E-mail when it has been approved."); |
|
111 | +define("_MD_SUBMITONCE", "Please submit your link only once."); |
|
112 | +define("_MD_ALLPENDING", "All link information is posted pending verification."); |
|
113 | +define("_MD_DONTABUSE", "For security reasons your Username and IP will temporarily be recorded."); |
|
114 | +define("_MD_TAKESHOT", "It may take several days for your website link to be added to our database."); |
|
115 | + |
|
116 | +define("_MD_RANK", "Rank"); |
|
117 | +define("_MD_CATEGORY", "Category"); |
|
118 | +define("_MD_DESCRIPTION", "Description"); |
|
119 | +define("_MD_HITS", "Hits"); |
|
120 | +define("_MD_RATING", "Rating"); |
|
121 | +define("_MD_VOTE", "Vote"); |
|
122 | +define("_MD_TOP10", "%s Top 10"); // %s is a listing category title |
|
123 | + |
|
124 | +define("_MD_SEARCHRESULTS", "Search results for <b>%s</b>:"); // %s is search keywords |
|
125 | +define("_MD_SORTBY", "Sort by:"); |
|
126 | +define("_MD_TITLE", "Title"); |
|
127 | +define("_MD_DATE", "Date"); |
|
128 | +define("_MD_POPULARITY", "Popularity"); |
|
129 | +define("_MD_CURSORTEDBY", "Sites currently sorted by: %s"); |
|
130 | +define("_MD_PREVIOUS", "Previous"); |
|
131 | +define("_MD_NEXT", "Next"); |
|
132 | +define("_MD_NOMATCH", "No matches found to your query"); |
|
133 | + |
|
134 | +define("_MD_SUBMIT", "Submit"); |
|
135 | +define("_MD_CANCEL", "Cancel"); |
|
136 | 136 | |
137 | 137 | /* define("_MD_ALREADYREPORTED","You have already submitted a broken report for this resource."); */ |
138 | -define("_MD_MUSTREGFIRST","Sorry, you don't have the permission to perform this action.<br />Please register or login first!"); |
|
139 | -define("_MD_NORATING","No rating selected."); |
|
140 | -define("_MD_CANTVOTEOWN","You cannot vote on the resource you submitted.<br />All votes are logged and reviewed."); |
|
141 | -define("_MD_VOTEONCE2","Vote for the selected resource only once.<br />All votes are logged and reviewed."); |
|
138 | +define("_MD_MUSTREGFIRST", "Sorry, you don't have the permission to perform this action.<br />Please register or login first!"); |
|
139 | +define("_MD_NORATING", "No rating selected."); |
|
140 | +define("_MD_CANTVOTEOWN", "You cannot vote on the resource you submitted.<br />All votes are logged and reviewed."); |
|
141 | +define("_MD_VOTEONCE2", "Vote for the selected resource only once.<br />All votes are logged and reviewed."); |
|
142 | 142 | |
143 | 143 | //%%%%%% Module Name 'efqdirectory' (Admin) %%%%% |
144 | -define("_MD_MANAGE_SUBSCRIPTION_OFFERS","Manage subscription offers"); |
|
145 | -define("_MD_A_MODADMIN_HOME","Module Admin home"); |
|
146 | -define("_MD_A_DIRADMIN","Directories Admin"); |
|
147 | -define("_MD_A_CATEGORIESADMIN","Manage categories"); |
|
148 | -define("_MD_A_FTYPESADMIN","Field types Admin"); |
|
149 | -define("_MD_A_ATYPESADMIN","Address types Admin"); |
|
150 | -define("_MD_A_ASUBSCRIPTIONSADMIN","Subscriptions Admin"); |
|
151 | -define("_MD_CURRENT_PIC","Current picture"); |
|
152 | -define("_MD_SAVED","Record saved"); |
|
153 | -define("_MD_LISTINGDELETED","Listing deleted"); |
|
154 | -define("_MD_LISTINGAPPROVED","Listing approved"); |
|
155 | -define("_MD_MANAGEDIRECTORIES","Manage Directories"); |
|
156 | -define("_MD_MANAGEFIELDTYPES","Manage Field types"); |
|
157 | -define("_MD_MANAGEADDRESSTYPES","Manage Address types"); |
|
158 | -define("_MD_LISTINGTITLE","Listing title"); |
|
159 | -define("_MD_CHECK_DUPLICATE_DATATYPES","Check duplicate Data types"); |
|
160 | -define("_MD_DUPLICATE_DATATYPES","Duplicate Data types"); |
|
161 | -define("_MD_MERGE","Merge"); |
|
162 | - |
|
163 | -define("_MD_DAYS","Days"); |
|
164 | -define("_MD_WEEKS","Weeks"); |
|
165 | -define("_MD_QUARTERS","Quarters"); |
|
166 | -define("_MD_MONTHS","Months"); |
|
167 | -define("_MD_YEARS","Years"); |
|
168 | - |
|
169 | -define("_MD_DAY","Day"); |
|
170 | -define("_MD_WEEK","Week"); |
|
171 | -define("_MD_QUARTER","Quarter"); |
|
172 | -define("_MD_MONTH","Month"); |
|
173 | -define("_MD_YEAR","Year"); |
|
174 | - |
|
175 | -define("_MD_CURR_USD","USD"); |
|
176 | -define("_MD_CURR_AUD","AUD"); |
|
177 | -define("_MD_CURR_EUR","EUR"); |
|
178 | -define("_MD_CURR_GBP","GPB"); |
|
179 | -define("_MD_CURR_YEN","YEN"); |
|
144 | +define("_MD_MANAGE_SUBSCRIPTION_OFFERS", "Manage subscription offers"); |
|
145 | +define("_MD_A_MODADMIN_HOME", "Module Admin home"); |
|
146 | +define("_MD_A_DIRADMIN", "Directories Admin"); |
|
147 | +define("_MD_A_CATEGORIESADMIN", "Manage categories"); |
|
148 | +define("_MD_A_FTYPESADMIN", "Field types Admin"); |
|
149 | +define("_MD_A_ATYPESADMIN", "Address types Admin"); |
|
150 | +define("_MD_A_ASUBSCRIPTIONSADMIN", "Subscriptions Admin"); |
|
151 | +define("_MD_CURRENT_PIC", "Current picture"); |
|
152 | +define("_MD_SAVED", "Record saved"); |
|
153 | +define("_MD_LISTINGDELETED", "Listing deleted"); |
|
154 | +define("_MD_LISTINGAPPROVED", "Listing approved"); |
|
155 | +define("_MD_MANAGEDIRECTORIES", "Manage Directories"); |
|
156 | +define("_MD_MANAGEFIELDTYPES", "Manage Field types"); |
|
157 | +define("_MD_MANAGEADDRESSTYPES", "Manage Address types"); |
|
158 | +define("_MD_LISTINGTITLE", "Listing title"); |
|
159 | +define("_MD_CHECK_DUPLICATE_DATATYPES", "Check duplicate Data types"); |
|
160 | +define("_MD_DUPLICATE_DATATYPES", "Duplicate Data types"); |
|
161 | +define("_MD_MERGE", "Merge"); |
|
162 | + |
|
163 | +define("_MD_DAYS", "Days"); |
|
164 | +define("_MD_WEEKS", "Weeks"); |
|
165 | +define("_MD_QUARTERS", "Quarters"); |
|
166 | +define("_MD_MONTHS", "Months"); |
|
167 | +define("_MD_YEARS", "Years"); |
|
168 | + |
|
169 | +define("_MD_DAY", "Day"); |
|
170 | +define("_MD_WEEK", "Week"); |
|
171 | +define("_MD_QUARTER", "Quarter"); |
|
172 | +define("_MD_MONTH", "Month"); |
|
173 | +define("_MD_YEAR", "Year"); |
|
174 | + |
|
175 | +define("_MD_CURR_USD", "USD"); |
|
176 | +define("_MD_CURR_AUD", "AUD"); |
|
177 | +define("_MD_CURR_EUR", "EUR"); |
|
178 | +define("_MD_CURR_GBP", "GPB"); |
|
179 | +define("_MD_CURR_YEN", "YEN"); |
|
180 | 180 | |
181 | 181 | //Directories management |
182 | -define("_MD_INVALID_DIR","Invalid directory."); |
|
183 | -define("_MD_CREATE_NEWDIR","Create a new Directory"); |
|
184 | -define("_MD_DIRNAME","Directory name"); |
|
185 | -define("_MD_DIROPENYN","Set open?"); |
|
186 | -define("_MD_TOTALCATS","Nr. of categories"); |
|
187 | -define("_MD_YESNO"," Mark if set to <strong>Yes</strong>, unmark if set to <strong>No</strong>"); |
|
188 | -define("_MD_NA","N/A"); |
|
189 | -define("_MD_ACTION","Action"); |
|
190 | -define("_MD_POSTFIX","Postfix to use for this directory"); |
|
191 | -define("_MD_OPENYN","Set this Directory open?"); |
|
192 | -define("_MD_DIR_SAVED","Directory saved succesfully."); |
|
193 | -define("_MD_DIR_UPDATED","Directory updated"); |
|
194 | -define("_MD_MANAGE_CATS","Manage categories"); |
|
195 | -define("_MD_MANAGE_CAT","Manage category"); |
|
196 | -define("_MD_EDITDIR","Edit directory"); |
|
197 | -define("_MD_EDITDIRFORM","Edit directory form"); |
|
198 | -define("_MD_SELECT_PIC","Select picture to upload"); |
|
199 | -define("_MD_WITH_SELECTED","With selected"); |
|
200 | -define("_MD_STATUS","Status"); |
|
201 | -define("_MD_OPEN","Open"); |
|
202 | -define("_MD_CLOSE","Close"); |
|
203 | -define("_MD_CLOSED","Closed"); |
|
204 | -define("_MD_EDIT_BRACKETS"," [ Edit ]"); |
|
182 | +define("_MD_INVALID_DIR", "Invalid directory."); |
|
183 | +define("_MD_CREATE_NEWDIR", "Create a new Directory"); |
|
184 | +define("_MD_DIRNAME", "Directory name"); |
|
185 | +define("_MD_DIROPENYN", "Set open?"); |
|
186 | +define("_MD_TOTALCATS", "Nr. of categories"); |
|
187 | +define("_MD_YESNO", " Mark if set to <strong>Yes</strong>, unmark if set to <strong>No</strong>"); |
|
188 | +define("_MD_NA", "N/A"); |
|
189 | +define("_MD_ACTION", "Action"); |
|
190 | +define("_MD_POSTFIX", "Postfix to use for this directory"); |
|
191 | +define("_MD_OPENYN", "Set this Directory open?"); |
|
192 | +define("_MD_DIR_SAVED", "Directory saved succesfully."); |
|
193 | +define("_MD_DIR_UPDATED", "Directory updated"); |
|
194 | +define("_MD_MANAGE_CATS", "Manage categories"); |
|
195 | +define("_MD_MANAGE_CAT", "Manage category"); |
|
196 | +define("_MD_EDITDIR", "Edit directory"); |
|
197 | +define("_MD_EDITDIRFORM", "Edit directory form"); |
|
198 | +define("_MD_SELECT_PIC", "Select picture to upload"); |
|
199 | +define("_MD_WITH_SELECTED", "With selected"); |
|
200 | +define("_MD_STATUS", "Status"); |
|
201 | +define("_MD_OPEN", "Open"); |
|
202 | +define("_MD_CLOSE", "Close"); |
|
203 | +define("_MD_CLOSED", "Closed"); |
|
204 | +define("_MD_EDIT_BRACKETS", " [ Edit ]"); |
|
205 | 205 | |
206 | 206 | //Categories management |
207 | -define("_MD_CREATE_NEWCAT","Create a new Category"); |
|
208 | -define("_MD_EDITCAT","Edit category"); |
|
209 | -define("_MD_NEWCATFORM","New category form"); |
|
210 | -define("_MD_CATTITLE","Category title"); |
|
211 | -define("_MD_CATTEXT_ACTIVE_YN","Show Category text?"); |
|
212 | -define("_MD_ACTIVEYN","Set this category active?"); |
|
213 | -define("_MD_ACTIVE","Active"); |
|
214 | -define("_MD_ALLOWLISTYN","Allow this category to have listings?"); |
|
215 | -define("_MD_SHOWPOPULARYN","Show the most popular listings in the startpage of this category?"); |
|
216 | -define("_MD_PARENTCAT","Parent category"); |
|
217 | -define("_MD_EDITCATFORM","Edit category form"); |
|
218 | -define("_MD_EDITDTYPES","Edit data field types"); |
|
219 | -define("_MD_ADDDTYPE","Add data field type"); |
|
220 | -define("_MD_DTYPE","Data field type"); |
|
221 | -define("_MD_DTYPE_TITLE","Data field type title"); |
|
222 | -define("_MD_DTYPE_NAME","Data field type name"); |
|
223 | -define("_MD_DTYPE_SEQ","Sequence"); |
|
224 | -define("_MD_DTYPE_SEQ_ABBR","Seq."); |
|
225 | -define("_MD_DTYPE_ACTIVEYN","Set this data field type active?"); |
|
226 | -define("_MD_SECTION","Section"); |
|
227 | -define("_MD_FTYPE_NAME","Field type name"); |
|
228 | -define("_MD_DEFAULT","Default"); |
|
229 | -define("_MD_DTYPE_DEFAULTYN","Set this data field type as default for child categories?"); |
|
230 | -define("_MD_IMPORT_DTYPES_FROM_PARENTCAT","Import data field types from parent category"); |
|
231 | -define("_MD_IMPORT_DTYPES_FROM_OTHERCAT","Import data field types from other category"); |
|
232 | -define("_MD_IMPORT_DTYPES_YN","Automatically import default fields from parent category?"); |
|
233 | -define("_MD_NORECORDS","No records found"); |
|
234 | -define("_MD_ADD_DTYPE_FORM","Add data field type form"); |
|
235 | -define("_MD_CAT_SAVED","Category saved"); |
|
236 | -define("_MD_CAT_UPDATED","Category updated"); |
|
237 | -define("_MD_DTYPE_ICON","Icon"); |
|
238 | -define("_MD_DTYPE_CUSTOM","Custom field y/n"); |
|
239 | -define("_MD_SELECT_ICON","Select icon"); |
|
240 | -define("_MD_CURRENT_ICON","Current icon"); |
|
241 | -define("_MD_CUSTOM","Custom field"); |
|
242 | -define("_MD_EDITDTYPE","Edit datatype"); |
|
243 | -define("_MD_NOIMAGE","No image selected"); |
|
244 | -define("_MD_EDIT_DTYPE_FORM","Edit data field type form"); |
|
245 | -define("_MD_DTYPE_UPDATED","Data field type updated"); |
|
246 | -define("_MD_EDITCATEGORIES","Edit categories"); |
|
247 | -define("_MD_CREATE_NEWSUBCAT","Create new subcategory"); |
|
248 | -define("_MD_SUBCATEGORIES","Subcategories"); |
|
249 | -define("_MD_NOVALIDDIR","No valid directory selected"); |
|
250 | -define("_MD_NORESULTS_PLEASE_CREATE_CATEGORY","No categories were found. Please create a new category."); |
|
251 | -define("_MD_NOFIELDTYPE_SELECTED","No field type was selected. Please select one of the field types before you submit the form."); |
|
252 | -define("_MD_SELECTDIRECTORY","Select directory"); |
|
253 | -define("_MD_FORWHICHDIRECTORY_MANAGE_CATEGORIES","For which directory do you want to manage categories?"); |
|
254 | -define("_MD_FORWHICHDIRECTORY_MANAGE_FIELDTYPES","For which directory do you want to manage field types?"); |
|
255 | -define("_MD_SELECTDIRFORM","Select directory"); |
|
207 | +define("_MD_CREATE_NEWCAT", "Create a new Category"); |
|
208 | +define("_MD_EDITCAT", "Edit category"); |
|
209 | +define("_MD_NEWCATFORM", "New category form"); |
|
210 | +define("_MD_CATTITLE", "Category title"); |
|
211 | +define("_MD_CATTEXT_ACTIVE_YN", "Show Category text?"); |
|
212 | +define("_MD_ACTIVEYN", "Set this category active?"); |
|
213 | +define("_MD_ACTIVE", "Active"); |
|
214 | +define("_MD_ALLOWLISTYN", "Allow this category to have listings?"); |
|
215 | +define("_MD_SHOWPOPULARYN", "Show the most popular listings in the startpage of this category?"); |
|
216 | +define("_MD_PARENTCAT", "Parent category"); |
|
217 | +define("_MD_EDITCATFORM", "Edit category form"); |
|
218 | +define("_MD_EDITDTYPES", "Edit data field types"); |
|
219 | +define("_MD_ADDDTYPE", "Add data field type"); |
|
220 | +define("_MD_DTYPE", "Data field type"); |
|
221 | +define("_MD_DTYPE_TITLE", "Data field type title"); |
|
222 | +define("_MD_DTYPE_NAME", "Data field type name"); |
|
223 | +define("_MD_DTYPE_SEQ", "Sequence"); |
|
224 | +define("_MD_DTYPE_SEQ_ABBR", "Seq."); |
|
225 | +define("_MD_DTYPE_ACTIVEYN", "Set this data field type active?"); |
|
226 | +define("_MD_SECTION", "Section"); |
|
227 | +define("_MD_FTYPE_NAME", "Field type name"); |
|
228 | +define("_MD_DEFAULT", "Default"); |
|
229 | +define("_MD_DTYPE_DEFAULTYN", "Set this data field type as default for child categories?"); |
|
230 | +define("_MD_IMPORT_DTYPES_FROM_PARENTCAT", "Import data field types from parent category"); |
|
231 | +define("_MD_IMPORT_DTYPES_FROM_OTHERCAT", "Import data field types from other category"); |
|
232 | +define("_MD_IMPORT_DTYPES_YN", "Automatically import default fields from parent category?"); |
|
233 | +define("_MD_NORECORDS", "No records found"); |
|
234 | +define("_MD_ADD_DTYPE_FORM", "Add data field type form"); |
|
235 | +define("_MD_CAT_SAVED", "Category saved"); |
|
236 | +define("_MD_CAT_UPDATED", "Category updated"); |
|
237 | +define("_MD_DTYPE_ICON", "Icon"); |
|
238 | +define("_MD_DTYPE_CUSTOM", "Custom field y/n"); |
|
239 | +define("_MD_SELECT_ICON", "Select icon"); |
|
240 | +define("_MD_CURRENT_ICON", "Current icon"); |
|
241 | +define("_MD_CUSTOM", "Custom field"); |
|
242 | +define("_MD_EDITDTYPE", "Edit datatype"); |
|
243 | +define("_MD_NOIMAGE", "No image selected"); |
|
244 | +define("_MD_EDIT_DTYPE_FORM", "Edit data field type form"); |
|
245 | +define("_MD_DTYPE_UPDATED", "Data field type updated"); |
|
246 | +define("_MD_EDITCATEGORIES", "Edit categories"); |
|
247 | +define("_MD_CREATE_NEWSUBCAT", "Create new subcategory"); |
|
248 | +define("_MD_SUBCATEGORIES", "Subcategories"); |
|
249 | +define("_MD_NOVALIDDIR", "No valid directory selected"); |
|
250 | +define("_MD_NORESULTS_PLEASE_CREATE_CATEGORY", "No categories were found. Please create a new category."); |
|
251 | +define("_MD_NOFIELDTYPE_SELECTED", "No field type was selected. Please select one of the field types before you submit the form."); |
|
252 | +define("_MD_SELECTDIRECTORY", "Select directory"); |
|
253 | +define("_MD_FORWHICHDIRECTORY_MANAGE_CATEGORIES", "For which directory do you want to manage categories?"); |
|
254 | +define("_MD_FORWHICHDIRECTORY_MANAGE_FIELDTYPES", "For which directory do you want to manage field types?"); |
|
255 | +define("_MD_SELECTDIRFORM", "Select directory"); |
|
256 | 256 | |
257 | 257 | //Address types management |
258 | -define("_MD_ADDRESSTYPE_UPDATED","Address type updated"); |
|
259 | -define("_MD_EDIT_ADDRESSTYPES_TITLE","Edit Address types"); |
|
260 | -define("_MD_MANAGE_ADDRESS_TYPES","Manage Address types"); |
|
261 | -define("_MD_EDIT_ADDRESSTYPE_FIELDS_FORM","Address types form"); |
|
262 | -define("_MD_FIELDS","Address fields"); |
|
263 | -define("_MD_USELOCYN","Use location manager to update related fields (like city and country)?"); |
|
264 | -define("_MD_ADDRESSTYPE_TITLE","Type name"); |
|
258 | +define("_MD_ADDRESSTYPE_UPDATED", "Address type updated"); |
|
259 | +define("_MD_EDIT_ADDRESSTYPES_TITLE", "Edit Address types"); |
|
260 | +define("_MD_MANAGE_ADDRESS_TYPES", "Manage Address types"); |
|
261 | +define("_MD_EDIT_ADDRESSTYPE_FIELDS_FORM", "Address types form"); |
|
262 | +define("_MD_FIELDS", "Address fields"); |
|
263 | +define("_MD_USELOCYN", "Use location manager to update related fields (like city and country)?"); |
|
264 | +define("_MD_ADDRESSTYPE_TITLE", "Type name"); |
|
265 | 265 | |
266 | 266 | //Fieldtypes management |
267 | -define("_MD_FIELDTYPE","Field type"); |
|
268 | -define("_MD_FTYPECONF","Field types management"); |
|
269 | -define("_MD_CREATE_NEWFTYPE","Create new field type"); |
|
270 | -define("_MD_VIEW_FIELDTYPE","View field type"); |
|
271 | -define("_MD_TYPE","Type"); |
|
272 | -define("_MD_EXT","Extension"); |
|
273 | -define("_MD_SET_EXT","Extension Manager"); |
|
274 | -define("_MD_NEWFTYPEFORM","New field type form"); |
|
275 | -define("_MD_EDITFTYPEFORM","Edit field type form"); |
|
276 | -define("_MD_FIELDNAMES_CHECKBOX","Checkbox"); |
|
277 | -define("_MD_FIELDNAMES_DATE","Date"); |
|
278 | -define("_MD_FIELDNAMES_DATETIME","Date/time"); |
|
279 | -define("_MD_FIELDNAMES_LONGDATE","Long date"); |
|
280 | -define("_MD_FIELDNAMES_GROUP","Group"); |
|
281 | -define("_MD_FIELDNAMES_GROUPMULTI","Multi group"); |
|
282 | -define("_MD_FIELDNAMES_LANGUAGE","Language"); |
|
283 | -define("_MD_FIELDNAMES_RADIO","Radio"); |
|
284 | -define("_MD_FIELDNAMES_SELECT","Select"); |
|
285 | -define("_MD_FIELDNAMES_SELECTMULTI","Select multi"); |
|
286 | -define("_MD_FIELDNAMES_TEXTAREA","Text area"); |
|
287 | -define("_MD_FIELDNAMES_DHTMLTEXTAREA","DHTML text area"); |
|
288 | -define("_MD_FIELDNAMES_TEXTBOX","Text box"); |
|
289 | -define("_MD_FIELDNAMES_TIMEZONE","Time zone"); |
|
290 | -define("_MD_FIELDNAMES_YESNO","Yes/No"); |
|
291 | -define("_MD_FIELDNAMES_URL_TITLE","Link title"); |
|
292 | -define("_MD_FIELDNAMES_URL_LINK","Link address"); |
|
293 | -define("_MD_FIELDNAMES_URL","Web link"); |
|
294 | -define("_MD_FIELDNAMES_GMAP","Google map"); |
|
295 | - |
|
296 | -define("_MD_FIELDNAMES_ADDRESS","Address"); |
|
297 | -define("_MD_FIELDNAMES_GALLERY","Image gallery"); |
|
298 | -define("_MD_FIELDNAMES_RATING","Rating"); |
|
299 | -define("_MD_FIELDNAMES_LOCATIONMAP","Location map"); |
|
300 | - |
|
301 | -define("_MD_WIDTH","Width"); |
|
302 | -define("_MD_HEIGHT","Height"); |
|
303 | -define("_MD_ROWS","Rows"); |
|
304 | -define("_MD_COLS","Cols"); |
|
305 | -define("_MD_SIZE","Size"); |
|
306 | -define("_MD_MAXSIZE","Max size"); |
|
307 | -define("_MD_DEFAULTVALUE","Default value"); |
|
308 | -define("_MD_MULTIPLE","Multiple"); |
|
309 | -define("_MD_CHECKED","Checked"); |
|
310 | -define("_MD_DELETE_CAT"," Delete category"); |
|
311 | -define("_MD_CONFIRM_DELETECAT_FORM","Confirm deletion of category"); |
|
312 | -define("_MD_DELETE_CAT_YN","Are you sure you want to delete this category?"); |
|
313 | -define("_MD_CAT_DELETES","Category deleted succesfully"); |
|
267 | +define("_MD_FIELDTYPE", "Field type"); |
|
268 | +define("_MD_FTYPECONF", "Field types management"); |
|
269 | +define("_MD_CREATE_NEWFTYPE", "Create new field type"); |
|
270 | +define("_MD_VIEW_FIELDTYPE", "View field type"); |
|
271 | +define("_MD_TYPE", "Type"); |
|
272 | +define("_MD_EXT", "Extension"); |
|
273 | +define("_MD_SET_EXT", "Extension Manager"); |
|
274 | +define("_MD_NEWFTYPEFORM", "New field type form"); |
|
275 | +define("_MD_EDITFTYPEFORM", "Edit field type form"); |
|
276 | +define("_MD_FIELDNAMES_CHECKBOX", "Checkbox"); |
|
277 | +define("_MD_FIELDNAMES_DATE", "Date"); |
|
278 | +define("_MD_FIELDNAMES_DATETIME", "Date/time"); |
|
279 | +define("_MD_FIELDNAMES_LONGDATE", "Long date"); |
|
280 | +define("_MD_FIELDNAMES_GROUP", "Group"); |
|
281 | +define("_MD_FIELDNAMES_GROUPMULTI", "Multi group"); |
|
282 | +define("_MD_FIELDNAMES_LANGUAGE", "Language"); |
|
283 | +define("_MD_FIELDNAMES_RADIO", "Radio"); |
|
284 | +define("_MD_FIELDNAMES_SELECT", "Select"); |
|
285 | +define("_MD_FIELDNAMES_SELECTMULTI", "Select multi"); |
|
286 | +define("_MD_FIELDNAMES_TEXTAREA", "Text area"); |
|
287 | +define("_MD_FIELDNAMES_DHTMLTEXTAREA", "DHTML text area"); |
|
288 | +define("_MD_FIELDNAMES_TEXTBOX", "Text box"); |
|
289 | +define("_MD_FIELDNAMES_TIMEZONE", "Time zone"); |
|
290 | +define("_MD_FIELDNAMES_YESNO", "Yes/No"); |
|
291 | +define("_MD_FIELDNAMES_URL_TITLE", "Link title"); |
|
292 | +define("_MD_FIELDNAMES_URL_LINK", "Link address"); |
|
293 | +define("_MD_FIELDNAMES_URL", "Web link"); |
|
294 | +define("_MD_FIELDNAMES_GMAP", "Google map"); |
|
295 | + |
|
296 | +define("_MD_FIELDNAMES_ADDRESS", "Address"); |
|
297 | +define("_MD_FIELDNAMES_GALLERY", "Image gallery"); |
|
298 | +define("_MD_FIELDNAMES_RATING", "Rating"); |
|
299 | +define("_MD_FIELDNAMES_LOCATIONMAP", "Location map"); |
|
300 | + |
|
301 | +define("_MD_WIDTH", "Width"); |
|
302 | +define("_MD_HEIGHT", "Height"); |
|
303 | +define("_MD_ROWS", "Rows"); |
|
304 | +define("_MD_COLS", "Cols"); |
|
305 | +define("_MD_SIZE", "Size"); |
|
306 | +define("_MD_MAXSIZE", "Max size"); |
|
307 | +define("_MD_DEFAULTVALUE", "Default value"); |
|
308 | +define("_MD_MULTIPLE", "Multiple"); |
|
309 | +define("_MD_CHECKED", "Checked"); |
|
310 | +define("_MD_DELETE_CAT", " Delete category"); |
|
311 | +define("_MD_CONFIRM_DELETECAT_FORM", "Confirm deletion of category"); |
|
312 | +define("_MD_DELETE_CAT_YN", "Are you sure you want to delete this category?"); |
|
313 | +define("_MD_CAT_DELETES", "Category deleted succesfully"); |
|
314 | 314 | |
315 | 315 | //Subscription offers management |
316 | -define("_MD_SUBSCR_OFFERS","Subscription offers for directory: %s"); |
|
317 | -define("_MD_OFFERTITLE","Title"); |
|
318 | -define("_MD_ITEMTYPES","Item types"); |
|
319 | -define("_MD_ITEMTYPE_NAME","Type name"); |
|
320 | -define("_MD_ITEMTYPE_LEVEL","Level"); |
|
321 | -define("_MD_ITEMTYPE_DIRECTORY","Directory"); |
|
322 | -define("_MD_ITEMTYPE_DELETED","The selected item type was deleted succesfully"); |
|
323 | -define("_MD_OFFERDURATION","Duration"); |
|
324 | -define("_MD_ADD_SUBSCR_OFFER","Add subscription offer"); |
|
325 | -define("_MD_ADD_OFFER_FORM","Add subscription offer form"); |
|
326 | -define("_MD_EDIT_OFFER_FORM","Edit subscription offer form"); |
|
327 | -define("_MD_ADD_ITEMTYPE_FORM","Add item type form"); |
|
328 | -define("_MD_EDIT_ITEMTYPE_FORM","Edit item type form"); |
|
329 | -define("_MD_ADD_ITEMTYPE","Add item type"); |
|
330 | -define("_MD_OFFER_TITLE","Subscription title"); |
|
331 | -define("_MD_SUBSCR_ITEMTYPE","Subscription level"); |
|
332 | -define("_MD_SUBSCR_TYPE","Subscription type"); |
|
333 | -define("_MD_SUBSCR_FORM","Subscription order form"); |
|
334 | -define("_MD_UPDATE_SUBSCR_FORM","Update subscription order form"); |
|
335 | -define("_MD_FORWARDED_PAYMENT_PAGE","You are forwarded to the subscription payment form."); |
|
336 | -define("_MD_OFFER_DIRECTORY","Directory"); |
|
337 | -define("_MD_OFFER_DURATION","Duration"); |
|
338 | -define("_MD_OFFER_COUNT","Count"); |
|
339 | -define("_MD_OFFER_PRICE","Price"); |
|
340 | -define("_MD_OFFER_ACTIVEYN","Active y/n"); |
|
341 | -define("_MD_OFFER_ACTIVE","Active"); |
|
342 | -define("_MD_OFFER_DESCR","Description"); |
|
343 | -define("_MD_OFFER_CURRENCY","Currency"); |
|
344 | -define("_MD_INVALID_OFFERID","This offer ID is not valid. You will be redirected to the main subscriptions page."); |
|
345 | -define("_MD_INVALID_TYPEID","This type ID is not valid. You will be redirected to the main subscriptions page."); |
|
346 | -define("_MD_ERR_ITEMTYPE_DELETE","Something went wrong trying to delete an item type."); |
|
347 | -define("_MD_ERR_ITEMTYPE_LINKED_TO_LISTINGS","This item type is used in one or more offer. Please make sure this item type is not used in any offers before trying to delete it."); |
|
348 | -define("_MD_SELECT_DIRECTORY","Select the directory you would like to manage subscriptions for."); |
|
316 | +define("_MD_SUBSCR_OFFERS", "Subscription offers for directory: %s"); |
|
317 | +define("_MD_OFFERTITLE", "Title"); |
|
318 | +define("_MD_ITEMTYPES", "Item types"); |
|
319 | +define("_MD_ITEMTYPE_NAME", "Type name"); |
|
320 | +define("_MD_ITEMTYPE_LEVEL", "Level"); |
|
321 | +define("_MD_ITEMTYPE_DIRECTORY", "Directory"); |
|
322 | +define("_MD_ITEMTYPE_DELETED", "The selected item type was deleted succesfully"); |
|
323 | +define("_MD_OFFERDURATION", "Duration"); |
|
324 | +define("_MD_ADD_SUBSCR_OFFER", "Add subscription offer"); |
|
325 | +define("_MD_ADD_OFFER_FORM", "Add subscription offer form"); |
|
326 | +define("_MD_EDIT_OFFER_FORM", "Edit subscription offer form"); |
|
327 | +define("_MD_ADD_ITEMTYPE_FORM", "Add item type form"); |
|
328 | +define("_MD_EDIT_ITEMTYPE_FORM", "Edit item type form"); |
|
329 | +define("_MD_ADD_ITEMTYPE", "Add item type"); |
|
330 | +define("_MD_OFFER_TITLE", "Subscription title"); |
|
331 | +define("_MD_SUBSCR_ITEMTYPE", "Subscription level"); |
|
332 | +define("_MD_SUBSCR_TYPE", "Subscription type"); |
|
333 | +define("_MD_SUBSCR_FORM", "Subscription order form"); |
|
334 | +define("_MD_UPDATE_SUBSCR_FORM", "Update subscription order form"); |
|
335 | +define("_MD_FORWARDED_PAYMENT_PAGE", "You are forwarded to the subscription payment form."); |
|
336 | +define("_MD_OFFER_DIRECTORY", "Directory"); |
|
337 | +define("_MD_OFFER_DURATION", "Duration"); |
|
338 | +define("_MD_OFFER_COUNT", "Count"); |
|
339 | +define("_MD_OFFER_PRICE", "Price"); |
|
340 | +define("_MD_OFFER_ACTIVEYN", "Active y/n"); |
|
341 | +define("_MD_OFFER_ACTIVE", "Active"); |
|
342 | +define("_MD_OFFER_DESCR", "Description"); |
|
343 | +define("_MD_OFFER_CURRENCY", "Currency"); |
|
344 | +define("_MD_INVALID_OFFERID", "This offer ID is not valid. You will be redirected to the main subscriptions page."); |
|
345 | +define("_MD_INVALID_TYPEID", "This type ID is not valid. You will be redirected to the main subscriptions page."); |
|
346 | +define("_MD_ERR_ITEMTYPE_DELETE", "Something went wrong trying to delete an item type."); |
|
347 | +define("_MD_ERR_ITEMTYPE_LINKED_TO_LISTINGS", "This item type is used in one or more offer. Please make sure this item type is not used in any offers before trying to delete it."); |
|
348 | +define("_MD_SELECT_DIRECTORY", "Select the directory you would like to manage subscriptions for."); |
|
349 | 349 | |
350 | 350 | //Extension manager |
351 | -define("_MD_SELECT_FORMTYPE","Please select a field type before using the extension manager."); |
|
352 | -define("_MD_EXTMANAGER","Extension Manager"); |
|
351 | +define("_MD_SELECT_FORMTYPE", "Please select a field type before using the extension manager."); |
|
352 | +define("_MD_EXTMANAGER", "Extension Manager"); |
|
353 | 353 | |
354 | 354 | //Edit item form |
355 | -define("_MD_ONLYADMIN_ALLOWED_TO_EDIT","Only the administrator is allowed to edit a listing that has already been approved."); |
|
356 | -define("_MD_EDITITEM_FORM","Edit listing form"); |
|
357 | -define("_MD_EDITITEMTYPE_FORM","Edit item type form"); |
|
358 | -define("_MD_SELECT_ITEMTYPE","Select item type"); |
|
359 | -define("_MD_ITEMCATEGORIES","Linked categories"); |
|
360 | -define("_MD_EDIT_CATEGORIES","Edit categories"); |
|
361 | -define("_MD_ITEM_UPDATED","Listing updated"); |
|
362 | -define("_MD_CATEGORIES_UPDATED","Categories updated"); |
|
363 | -define("_MD_VIEWITEM","View listing"); |
|
364 | -define("_MD_LANG_EDIT_ITEM","Edit listing"); |
|
365 | -define("_MD_CUSTOM_TITLE","Title "); |
|
366 | -define("_MD_CUSTOM_VALUE","Value "); |
|
367 | -define("_MD_EDIT_INVALID_VALUE","Invalid value for address"); |
|
368 | -define("_MD_NOVALIDITEM","No valid item selected"); |
|
369 | -define("_MD_NOVALIDITEM_IDMISSING","No valid item selected. Item ID is missing."); |
|
370 | -define("_MD_NOVALIDITEM_TITLEMISSING","No valid item selected. Item title is missing."); |
|
371 | -define("_MD_NOVALIDORDER","No valid order selected"); |
|
355 | +define("_MD_ONLYADMIN_ALLOWED_TO_EDIT", "Only the administrator is allowed to edit a listing that has already been approved."); |
|
356 | +define("_MD_EDITITEM_FORM", "Edit listing form"); |
|
357 | +define("_MD_EDITITEMTYPE_FORM", "Edit item type form"); |
|
358 | +define("_MD_SELECT_ITEMTYPE", "Select item type"); |
|
359 | +define("_MD_ITEMCATEGORIES", "Linked categories"); |
|
360 | +define("_MD_EDIT_CATEGORIES", "Edit categories"); |
|
361 | +define("_MD_ITEM_UPDATED", "Listing updated"); |
|
362 | +define("_MD_CATEGORIES_UPDATED", "Categories updated"); |
|
363 | +define("_MD_VIEWITEM", "View listing"); |
|
364 | +define("_MD_LANG_EDIT_ITEM", "Edit listing"); |
|
365 | +define("_MD_CUSTOM_TITLE", "Title "); |
|
366 | +define("_MD_CUSTOM_VALUE", "Value "); |
|
367 | +define("_MD_EDIT_INVALID_VALUE", "Invalid value for address"); |
|
368 | +define("_MD_NOVALIDITEM", "No valid item selected"); |
|
369 | +define("_MD_NOVALIDITEM_IDMISSING", "No valid item selected. Item ID is missing."); |
|
370 | +define("_MD_NOVALIDITEM_TITLEMISSING", "No valid item selected. Item title is missing."); |
|
371 | +define("_MD_NOVALIDORDER", "No valid order selected"); |
|
372 | 372 | |
373 | 373 | //Confirm delete listing |
374 | -define("_MD_CONFIRM_DELETELISTING_FORM","Confirm delete listing form"); |
|
375 | -define("_MD_DELETEYN","Are you sure you want to delete this listing?"); |
|
374 | +define("_MD_CONFIRM_DELETELISTING_FORM", "Confirm delete listing form"); |
|
375 | +define("_MD_DELETEYN", "Are you sure you want to delete this listing?"); |
|
376 | 376 | |
377 | 377 | |
378 | 378 | |
379 | 379 | //Submit form frontside |
380 | -define("_MD_SELECTCAT_FORM","Select category form"); |
|
381 | -define("_MD_SUBMITLISTING_FORM","Submit listing form"); |
|
382 | -define("_MD_NOCATEGORYMATCH","At least one category should be selected for a new listing"); |
|
383 | -define("_MD_NODIRECTORYSELECTED","A directory must be selected prior to submitting a listing."); |
|
384 | -define("_MD_NOACTIVECATEGORIES","There are not any selectable categories in this directory."); |
|
380 | +define("_MD_SELECTCAT_FORM", "Select category form"); |
|
381 | +define("_MD_SUBMITLISTING_FORM", "Submit listing form"); |
|
382 | +define("_MD_NOCATEGORYMATCH", "At least one category should be selected for a new listing"); |
|
383 | +define("_MD_NODIRECTORYSELECTED", "A directory must be selected prior to submitting a listing."); |
|
384 | +define("_MD_NOACTIVECATEGORIES", "There are not any selectable categories in this directory."); |
|
385 | 385 | |
386 | 386 | |
387 | 387 | //Frontside index |
388 | -define("_MD_INTERESTING_LISTING","Interesting listing at %s"); // %s is your site name |
|
389 | -define("_MD_INTERESTING_LISTING_FOUND","Here is an interesting listing I have found at %s"); // %s is your site name |
|
390 | -define("_MD_NOACTIVEDIRECTORIES","There are no directories active at this moment."); |
|
391 | -define("_MD_DIRECTORIES_HEADER","Directories"); |
|
392 | -define("_MD_LISTINGS","Listings"); |
|
393 | -define("_MD_SUBMITLISTING","Submit new listing"); |
|
388 | +define("_MD_INTERESTING_LISTING", "Interesting listing at %s"); // %s is your site name |
|
389 | +define("_MD_INTERESTING_LISTING_FOUND", "Here is an interesting listing I have found at %s"); // %s is your site name |
|
390 | +define("_MD_NOACTIVEDIRECTORIES", "There are no directories active at this moment."); |
|
391 | +define("_MD_DIRECTORIES_HEADER", "Directories"); |
|
392 | +define("_MD_LISTINGS", "Listings"); |
|
393 | +define("_MD_SUBMITLISTING", "Submit new listing"); |
|
394 | 394 | |
395 | 395 | //Frontside edit |
396 | -define("_MD_PUBLISH_LISTING","Publish listing"); |
|
397 | -define("_MD_SUBMITTED_PUBLICATION","This listing has been submitted for publication."); |
|
398 | -define("_MD_PUBLISHED","This listing was published succesfully."); |
|
399 | -define("_MD_DF_ADDRESS","Address"); |
|
400 | -define("_MD_DF_ADDRESS2","Address2"); |
|
401 | -define("_MD_DF_ZIP","Zip code"); |
|
402 | -define("_MD_DF_POSTCODE","Postcode"); |
|
403 | -define("_MD_DF_LAT","Lattitude"); |
|
404 | -define("_MD_DF_LON","Longnitude"); |
|
405 | -define("_MD_DF_PHONE","Phone number"); |
|
406 | -define("_MD_DF_FAX","Fax number"); |
|
407 | -define("_MD_DF_MOBILE","Mobile number"); |
|
408 | -define("_MD_DF_CITY","City"); |
|
409 | -define("_MD_DF_COUNTRY","Country"); |
|
410 | -define("_MD_DF_TYPENAME","Address type name"); |
|
396 | +define("_MD_PUBLISH_LISTING", "Publish listing"); |
|
397 | +define("_MD_SUBMITTED_PUBLICATION", "This listing has been submitted for publication."); |
|
398 | +define("_MD_PUBLISHED", "This listing was published succesfully."); |
|
399 | +define("_MD_DF_ADDRESS", "Address"); |
|
400 | +define("_MD_DF_ADDRESS2", "Address2"); |
|
401 | +define("_MD_DF_ZIP", "Zip code"); |
|
402 | +define("_MD_DF_POSTCODE", "Postcode"); |
|
403 | +define("_MD_DF_LAT", "Lattitude"); |
|
404 | +define("_MD_DF_LON", "Longnitude"); |
|
405 | +define("_MD_DF_PHONE", "Phone number"); |
|
406 | +define("_MD_DF_FAX", "Fax number"); |
|
407 | +define("_MD_DF_MOBILE", "Mobile number"); |
|
408 | +define("_MD_DF_CITY", "City"); |
|
409 | +define("_MD_DF_COUNTRY", "Country"); |
|
410 | +define("_MD_DF_TYPENAME", "Address type name"); |
|
411 | 411 | define("_MD_DF_USELOCYN", _MD_USELOCYN); |
412 | 412 | |
413 | 413 | //Frontside listing |
414 | -define("_MD_LANG_ITEMTITLE","Title"); |
|
415 | -define("_MD_LANG_SUBSCR_OFFERS_HEADER","Subscription offers"); |
|
416 | -define("_MD_LANG_SUBSCR_ACTIVE_ORDERS_HEADER","Active subscriptions"); |
|
417 | -define("_MD_LANG_CURRENT_SUBSCR","Current subscription"); |
|
418 | -define("_MD_LANG_ORDERNAME","Order name"); |
|
419 | -define("_MD_LANG_ACTIONS","Actions"); |
|
420 | -define("_MD_LANG_TERMINATE_ORDER","Delete this order"); |
|
421 | -define("_MD_LANG_TERMINATE_ORDER_ALT","Delete"); |
|
422 | -define("_MD_LANG_RENEW_SUBSCRIPTION","Renew this subscription"); |
|
423 | -define("_MD_LANG_RENEW_SUBSCRIPTION_ALT","Renew"); |
|
424 | -define("_MD_SUBSCR_TYPE_NOTSELECTED","Please select a subscription type first."); |
|
425 | -define("_MD_LANG_STARTDATE","Start date"); |
|
426 | -define("_MD_NORIGHTS","You do not have sufficient rights to view this page. Please contact the website administrator if you feel that you should have access rights to this page."); |
|
427 | -define("_MD_CONFIRMATION","Confirmation"); |
|
428 | -define("_MD_CONFIRM_TERMINATE_TITLE","Confirm deletion"); |
|
429 | -define("_MD_CONFIRM_TERMINATION_TEXT","Please confirm that you wish to delete this order. Press the button 'Continue' to confirm or press the 'Back' button when you wish you cancel this action."); |
|
430 | -define("_MD_LANG_BILLTO","Bill to date"); |
|
431 | -define("_MD_LANG_ENDDATE","End date"); |
|
432 | -define("_MD_LANG_PAYMENTSTATUS","Payment status"); |
|
433 | -define("_MD_LANG_NO_SUBSCR_MOMENT","Currently this listing does not have a subscription."); |
|
434 | -define("_MD_LANG_SUBSCRIBE","Subscribe"); |
|
435 | -define("_MD_LANG_INCOMPLETE","Incomplete"); |
|
436 | -define("_MD_LANG_ITEMDESCRIPTION","Description"); |
|
437 | -define("_MD_EDITTHISLISTING","[Edit this listing]"); |
|
438 | -define("_MD_VIEWSUBSCRIPTIONS","View subscription"); |
|
439 | -define("_MD_ITEM_NOT_EXIST","This item can not be found."); |
|
440 | -define("_MD_SELECT_STARTDATE","Select start date"); |
|
441 | -define("_MD_AUTORENEWYN","Auto renew subscription?"); |
|
442 | -define("_MD_ORDER_DELETED","The order has been deleted succesfully."); |
|
443 | -define("_MD_EDIT_LISTING","Edit listing"); |
|
414 | +define("_MD_LANG_ITEMTITLE", "Title"); |
|
415 | +define("_MD_LANG_SUBSCR_OFFERS_HEADER", "Subscription offers"); |
|
416 | +define("_MD_LANG_SUBSCR_ACTIVE_ORDERS_HEADER", "Active subscriptions"); |
|
417 | +define("_MD_LANG_CURRENT_SUBSCR", "Current subscription"); |
|
418 | +define("_MD_LANG_ORDERNAME", "Order name"); |
|
419 | +define("_MD_LANG_ACTIONS", "Actions"); |
|
420 | +define("_MD_LANG_TERMINATE_ORDER", "Delete this order"); |
|
421 | +define("_MD_LANG_TERMINATE_ORDER_ALT", "Delete"); |
|
422 | +define("_MD_LANG_RENEW_SUBSCRIPTION", "Renew this subscription"); |
|
423 | +define("_MD_LANG_RENEW_SUBSCRIPTION_ALT", "Renew"); |
|
424 | +define("_MD_SUBSCR_TYPE_NOTSELECTED", "Please select a subscription type first."); |
|
425 | +define("_MD_LANG_STARTDATE", "Start date"); |
|
426 | +define("_MD_NORIGHTS", "You do not have sufficient rights to view this page. Please contact the website administrator if you feel that you should have access rights to this page."); |
|
427 | +define("_MD_CONFIRMATION", "Confirmation"); |
|
428 | +define("_MD_CONFIRM_TERMINATE_TITLE", "Confirm deletion"); |
|
429 | +define("_MD_CONFIRM_TERMINATION_TEXT", "Please confirm that you wish to delete this order. Press the button 'Continue' to confirm or press the 'Back' button when you wish you cancel this action."); |
|
430 | +define("_MD_LANG_BILLTO", "Bill to date"); |
|
431 | +define("_MD_LANG_ENDDATE", "End date"); |
|
432 | +define("_MD_LANG_PAYMENTSTATUS", "Payment status"); |
|
433 | +define("_MD_LANG_NO_SUBSCR_MOMENT", "Currently this listing does not have a subscription."); |
|
434 | +define("_MD_LANG_SUBSCRIBE", "Subscribe"); |
|
435 | +define("_MD_LANG_INCOMPLETE", "Incomplete"); |
|
436 | +define("_MD_LANG_ITEMDESCRIPTION", "Description"); |
|
437 | +define("_MD_EDITTHISLISTING", "[Edit this listing]"); |
|
438 | +define("_MD_VIEWSUBSCRIPTIONS", "View subscription"); |
|
439 | +define("_MD_ITEM_NOT_EXIST", "This item can not be found."); |
|
440 | +define("_MD_SELECT_STARTDATE", "Select start date"); |
|
441 | +define("_MD_AUTORENEWYN", "Auto renew subscription?"); |
|
442 | +define("_MD_ORDER_DELETED", "The order has been deleted succesfully."); |
|
443 | +define("_MD_EDIT_LISTING", "Edit listing"); |
|
444 | 444 | |
445 | 445 | //Order payment |
446 | -define("_MD_LANG_SUBSCR_PAYMENT","Subscription payment"); |
|
447 | -define("_MD_ORDER_PAYMENT_FORM","Order payment form"); |
|
448 | -define("_MD_PAY_FIRSTNAME","First name"); |
|
449 | -define("_MD_PAY_LASTNAME","Last name"); |
|
450 | -define("_MD_PAY_ADDRESS1","Address line 1"); |
|
451 | -define("_MD_PAY_ADDRESS2","Address line 2"); |
|
452 | -define("_MD_PAY_CITY","City"); |
|
453 | -define("_MD_PAY_STATE","State"); |
|
454 | -define("_MD_PAY_ZIP","Zip code"); |
|
455 | -define("_MD_PAY_EMAIL","E-mail address"); |
|
456 | -define("_MD_PAY_PHONE1","Phone number"); |
|
457 | -define("_MD_ORDER_PROCESSED","We thank you for your payment. Your order will be processed as soon as possible."); |
|
458 | -define("_MD_ORDER_ALREADY_PROCESSED","This order has already been processed. You will be forwarded to the subscription page."); |
|
459 | -define("_MD_PAY_WITH","Payment with"); |
|
446 | +define("_MD_LANG_SUBSCR_PAYMENT", "Subscription payment"); |
|
447 | +define("_MD_ORDER_PAYMENT_FORM", "Order payment form"); |
|
448 | +define("_MD_PAY_FIRSTNAME", "First name"); |
|
449 | +define("_MD_PAY_LASTNAME", "Last name"); |
|
450 | +define("_MD_PAY_ADDRESS1", "Address line 1"); |
|
451 | +define("_MD_PAY_ADDRESS2", "Address line 2"); |
|
452 | +define("_MD_PAY_CITY", "City"); |
|
453 | +define("_MD_PAY_STATE", "State"); |
|
454 | +define("_MD_PAY_ZIP", "Zip code"); |
|
455 | +define("_MD_PAY_EMAIL", "E-mail address"); |
|
456 | +define("_MD_PAY_PHONE1", "Phone number"); |
|
457 | +define("_MD_ORDER_PROCESSED", "We thank you for your payment. Your order will be processed as soon as possible."); |
|
458 | +define("_MD_ORDER_ALREADY_PROCESSED", "This order has already been processed. You will be forwarded to the subscription page."); |
|
459 | +define("_MD_PAY_WITH", "Payment with"); |
|
460 | 460 | |
461 | 461 | |
462 | 462 | //Frontside search |
463 | -define("_MD_SEARCHRESULTS_TITLE","Search results"); |
|
464 | -define("_MD_LISTINGS_FOUND","listings found"); |
|
463 | +define("_MD_SEARCHRESULTS_TITLE", "Search results"); |
|
464 | +define("_MD_LISTINGS_FOUND", "listings found"); |
|
465 | 465 | |
466 | 466 | //Frontside advanced search |
467 | -define("_MD_ADVSEARCH_FORM","Advanced search form"); |
|
468 | -define("_MD_SEARCHSTRING","Search string"); |
|
469 | -define("_MD_EQUAL_TO","Equal to"); |
|
470 | -define("_MD_NOT_EQUAL_TO","Not equal to"); |
|
471 | -define("_MD_BEGINSWITH","Begins with"); |
|
472 | -define("_MD_ENDSWITH","Ends with"); |
|
473 | -define("_MD_CONTAINS","Contains"); |
|
474 | -define("_MD_NOTCONTAIN","Does not contain"); |
|
475 | -define("_MD_SMALLER_THAN","Smaller than"); |
|
476 | -define("_MD_GREATER_THAN","Greater than"); |
|
477 | -define("_MD_PAGE_OF_PAGES","<div align=\"right\"><strong>Page %s of %s</strong></div>"); |
|
478 | -define("_MD_LISTINGS_FOUND_ADV","<div align=\"right\">%s listings found</strong></div>"); |
|
479 | -define("_MD_PAGES","<strong>Pages: </strong>"); |
|
480 | -define("_MD_NEW_SEARCH_ADV","<div align=\"right\"><strong><a href=\"advancedsearch.php?dirid=%s\">[ New search ]</a></strong></div>"); |
|
481 | -define("_MD_SEARCH_ADV","<div align=\"right\"><strong><a href=\"advancedsearch.php?dirid=%s\">[ Advanced search ]</a></strong></div>"); |
|
467 | +define("_MD_ADVSEARCH_FORM", "Advanced search form"); |
|
468 | +define("_MD_SEARCHSTRING", "Search string"); |
|
469 | +define("_MD_EQUAL_TO", "Equal to"); |
|
470 | +define("_MD_NOT_EQUAL_TO", "Not equal to"); |
|
471 | +define("_MD_BEGINSWITH", "Begins with"); |
|
472 | +define("_MD_ENDSWITH", "Ends with"); |
|
473 | +define("_MD_CONTAINS", "Contains"); |
|
474 | +define("_MD_NOTCONTAIN", "Does not contain"); |
|
475 | +define("_MD_SMALLER_THAN", "Smaller than"); |
|
476 | +define("_MD_GREATER_THAN", "Greater than"); |
|
477 | +define("_MD_PAGE_OF_PAGES", "<div align=\"right\"><strong>Page %s of %s</strong></div>"); |
|
478 | +define("_MD_LISTINGS_FOUND_ADV", "<div align=\"right\">%s listings found</strong></div>"); |
|
479 | +define("_MD_PAGES", "<strong>Pages: </strong>"); |
|
480 | +define("_MD_NEW_SEARCH_ADV", "<div align=\"right\"><strong><a href=\"advancedsearch.php?dirid=%s\">[ New search ]</a></strong></div>"); |
|
481 | +define("_MD_SEARCH_ADV", "<div align=\"right\"><strong><a href=\"advancedsearch.php?dirid=%s\">[ Advanced search ]</a></strong></div>"); |
|
482 | 482 | |
483 | 483 | //Frontside addcoupon |
484 | 484 | define("_MD_COUPONHEADER", "Coupon Heading"); |
@@ -504,105 +504,105 @@ discard block |
||
504 | 504 | define("_MD_SETEXPIRATION", "Set Expiration date?"); |
505 | 505 | define("_MD_SAVINGS_IMGTXT", "Special Offers"); |
506 | 506 | define("_MD_COUPONIMGMGR", "Use ImageManager (in Description Toolbar above) to upload images."); |
507 | -define("_MD_COUPSEL","Select Coupon"); |
|
508 | -define("_MD_COUPONUPDATED","Coupon updated."); |
|
509 | - |
|
510 | -define("_MD_ADDBUTTON","Add"); |
|
511 | -define("_MD_DELBUTTON","Delete"); |
|
512 | -define("_MD_LISTINGSCONF","Listings Configuration"); |
|
513 | -define("_MD_DIRCONF","Directories Configuration"); |
|
514 | -define("_MD_CATCONF","Categories Configuration"); |
|
515 | -define("_MD_GENERALSET","EFQ Directory General Settings"); |
|
516 | - |
|
517 | -define("_MD_LISTINGSWAITING","Listings Waiting for Validation"); |
|
518 | -define("_MD_NONEW_LISTINGS","There are no new listings waiting for approval."); |
|
519 | -define("_MD_BROKENREPORTS","Broken Listing Reports"); |
|
520 | -define("_MD_MODREQUESTS","Listing Modification Requests"); |
|
521 | -define("_MD_SUBMITTER","Submitter"); |
|
522 | -define("_MD_VISIT","Visit"); |
|
523 | -define("_MD_SHOTMUST","Screenshot image must be a valid image file under %s directory (ex. shot.gif). Leave it blank if no image file."); |
|
524 | -define("_MD_APPROVE","Approve"); |
|
525 | -define("_MD_DELETE","Delete"); |
|
526 | -define("_MD_NOSUBMITTED","No New Submitted Links."); |
|
527 | -define("_MD_ADDMAIN","Add a MAIN Category"); |
|
528 | -define("_MD_TITLEC","Title: "); |
|
529 | -define("_MD_IMGURL","Image URL (OPTIONAL Image height will be resized to 50): "); |
|
530 | -define("_MD_ADD","Add"); |
|
531 | -define("_MD_ADDSUB","Add a SUB-Category"); |
|
532 | -define("_MD_IN","in"); |
|
533 | -define("_MD_ADDNEWLISTING","Add a New Listing"); |
|
534 | -define("_MD_MODCAT","Modify Category"); |
|
535 | -define("_MD_MODLISTING","Modify Listing"); |
|
536 | -define("_MD_TOTALVOTES","Listing Votes (total votes: %s)"); |
|
537 | -define("_MD_USERTOTALVOTES","Registered User Votes (total votes: %s)"); |
|
538 | -define("_MD_ANONTOTALVOTES","Anonymous User Votes (total votes: %s)"); |
|
539 | -define("_MD_USER","User"); |
|
540 | -define("_MD_IP","IP Address"); |
|
541 | -define("_MD_USERAVG","User AVG Rating"); |
|
542 | -define("_MD_TOTALRATE","Total Ratings"); |
|
543 | -define("_MD_NOREGVOTES","No Registered User Votes"); |
|
544 | -define("_MD_NOUNREGVOTES","No Unregistered User Votes"); |
|
545 | -define("_MD_VOTEDELETED","Vote data deleted."); |
|
546 | -define("_MD_NOBROKEN","No reported broken links."); |
|
547 | -define("_MD_IGNOREDESC","Ignore (Ignores the report and only deletes the <b>broken listing report</b>)"); |
|
548 | -define("_MD_DELETEDESC","Delete (Deletes <b>the reported website data</b> and <b>broken listing reports</b> for the link.)"); |
|
549 | -define("_MD_REPORTER","Report Sender"); |
|
550 | -define("_MD_LISTINGSUBMITTER","Listing Submitter"); |
|
551 | -define("_MD_IGNORE","Ignore"); |
|
552 | -define("_MD_LINKDELETED","Listing Deleted."); |
|
553 | -define("_MD_BROKENDELETED","Broken listing report deleted."); |
|
554 | -define("_MD_USERMODREQ","User Listing Modification Requests"); |
|
555 | -define("_MD_ORIGINAL","Original"); |
|
556 | -define("_MD_PROPOSED","Proposed"); |
|
557 | -define("_MD_OWNER","Owner: "); |
|
558 | -define("_MD_NOMODREQ","No Listing Modification Request."); |
|
559 | -define("_MD_DBUPDATED","Database Updated Successfully!"); |
|
560 | -define("_MD_MODREQDELETED","Modification Request Deleted."); |
|
561 | -define("_MD_IMGURLMAIN","Image URL (OPTIONAL and Only valid for main categories. Image height will be resized to 50): "); |
|
562 | -define("_MD_PARENT","Parent Category:"); |
|
563 | -define("_MD_SAVE","Save Changes"); |
|
564 | -define("_MD_CATDELETED","Category Deleted."); |
|
565 | -define("_MD_WARNING","WARNING: Are you sure you want to delete this Category and ALL of its Listings and Comments?"); |
|
566 | -define("_MD_YES","Yes"); |
|
567 | -define("_MD_NO","No"); |
|
568 | -define("_MD_NEWCATADDED","New Category Added Successfully!"); |
|
569 | -define("_MD_ERROREXIST","ERROR: The Listing you provided is already in the database!"); |
|
570 | -define("_MD_ERRORTITLE","ERROR: You need to enter TITLE!"); |
|
571 | -define("_MD_ERRORDESC","ERROR: You need to enter DESCRIPTION!"); |
|
572 | -define("_MD_NEWLISTINGADDED","New Listing added to the Database."); |
|
507 | +define("_MD_COUPSEL", "Select Coupon"); |
|
508 | +define("_MD_COUPONUPDATED", "Coupon updated."); |
|
509 | + |
|
510 | +define("_MD_ADDBUTTON", "Add"); |
|
511 | +define("_MD_DELBUTTON", "Delete"); |
|
512 | +define("_MD_LISTINGSCONF", "Listings Configuration"); |
|
513 | +define("_MD_DIRCONF", "Directories Configuration"); |
|
514 | +define("_MD_CATCONF", "Categories Configuration"); |
|
515 | +define("_MD_GENERALSET", "EFQ Directory General Settings"); |
|
516 | + |
|
517 | +define("_MD_LISTINGSWAITING", "Listings Waiting for Validation"); |
|
518 | +define("_MD_NONEW_LISTINGS", "There are no new listings waiting for approval."); |
|
519 | +define("_MD_BROKENREPORTS", "Broken Listing Reports"); |
|
520 | +define("_MD_MODREQUESTS", "Listing Modification Requests"); |
|
521 | +define("_MD_SUBMITTER", "Submitter"); |
|
522 | +define("_MD_VISIT", "Visit"); |
|
523 | +define("_MD_SHOTMUST", "Screenshot image must be a valid image file under %s directory (ex. shot.gif). Leave it blank if no image file."); |
|
524 | +define("_MD_APPROVE", "Approve"); |
|
525 | +define("_MD_DELETE", "Delete"); |
|
526 | +define("_MD_NOSUBMITTED", "No New Submitted Links."); |
|
527 | +define("_MD_ADDMAIN", "Add a MAIN Category"); |
|
528 | +define("_MD_TITLEC", "Title: "); |
|
529 | +define("_MD_IMGURL", "Image URL (OPTIONAL Image height will be resized to 50): "); |
|
530 | +define("_MD_ADD", "Add"); |
|
531 | +define("_MD_ADDSUB", "Add a SUB-Category"); |
|
532 | +define("_MD_IN", "in"); |
|
533 | +define("_MD_ADDNEWLISTING", "Add a New Listing"); |
|
534 | +define("_MD_MODCAT", "Modify Category"); |
|
535 | +define("_MD_MODLISTING", "Modify Listing"); |
|
536 | +define("_MD_TOTALVOTES", "Listing Votes (total votes: %s)"); |
|
537 | +define("_MD_USERTOTALVOTES", "Registered User Votes (total votes: %s)"); |
|
538 | +define("_MD_ANONTOTALVOTES", "Anonymous User Votes (total votes: %s)"); |
|
539 | +define("_MD_USER", "User"); |
|
540 | +define("_MD_IP", "IP Address"); |
|
541 | +define("_MD_USERAVG", "User AVG Rating"); |
|
542 | +define("_MD_TOTALRATE", "Total Ratings"); |
|
543 | +define("_MD_NOREGVOTES", "No Registered User Votes"); |
|
544 | +define("_MD_NOUNREGVOTES", "No Unregistered User Votes"); |
|
545 | +define("_MD_VOTEDELETED", "Vote data deleted."); |
|
546 | +define("_MD_NOBROKEN", "No reported broken links."); |
|
547 | +define("_MD_IGNOREDESC", "Ignore (Ignores the report and only deletes the <b>broken listing report</b>)"); |
|
548 | +define("_MD_DELETEDESC", "Delete (Deletes <b>the reported website data</b> and <b>broken listing reports</b> for the link.)"); |
|
549 | +define("_MD_REPORTER", "Report Sender"); |
|
550 | +define("_MD_LISTINGSUBMITTER", "Listing Submitter"); |
|
551 | +define("_MD_IGNORE", "Ignore"); |
|
552 | +define("_MD_LINKDELETED", "Listing Deleted."); |
|
553 | +define("_MD_BROKENDELETED", "Broken listing report deleted."); |
|
554 | +define("_MD_USERMODREQ", "User Listing Modification Requests"); |
|
555 | +define("_MD_ORIGINAL", "Original"); |
|
556 | +define("_MD_PROPOSED", "Proposed"); |
|
557 | +define("_MD_OWNER", "Owner: "); |
|
558 | +define("_MD_NOMODREQ", "No Listing Modification Request."); |
|
559 | +define("_MD_DBUPDATED", "Database Updated Successfully!"); |
|
560 | +define("_MD_MODREQDELETED", "Modification Request Deleted."); |
|
561 | +define("_MD_IMGURLMAIN", "Image URL (OPTIONAL and Only valid for main categories. Image height will be resized to 50): "); |
|
562 | +define("_MD_PARENT", "Parent Category:"); |
|
563 | +define("_MD_SAVE", "Save Changes"); |
|
564 | +define("_MD_CATDELETED", "Category Deleted."); |
|
565 | +define("_MD_WARNING", "WARNING: Are you sure you want to delete this Category and ALL of its Listings and Comments?"); |
|
566 | +define("_MD_YES", "Yes"); |
|
567 | +define("_MD_NO", "No"); |
|
568 | +define("_MD_NEWCATADDED", "New Category Added Successfully!"); |
|
569 | +define("_MD_ERROREXIST", "ERROR: The Listing you provided is already in the database!"); |
|
570 | +define("_MD_ERRORTITLE", "ERROR: You need to enter TITLE!"); |
|
571 | +define("_MD_ERRORDESC", "ERROR: You need to enter DESCRIPTION!"); |
|
572 | +define("_MD_NEWLISTINGADDED", "New Listing added to the Database."); |
|
573 | 573 | //define("_MD_YOURLISTING","Your Website Link at %s"); |
574 | -define("_MD_YOUCANBROWSE","You can browse our web links at %s"); |
|
575 | -define("_MD_HELLO","Hello %s"); |
|
576 | -define("_MD_WEAPPROVED","We approved your submitted listing."); |
|
577 | -define("_MD_THANKSSUBMIT","Thanks for your submission!"); |
|
578 | -define("_MD_LISTINGUPDATED","The listing was updated succesfully!"); |
|
579 | -define("_MD_ISAPPROVED","We approved your listing submission"); |
|
574 | +define("_MD_YOUCANBROWSE", "You can browse our web links at %s"); |
|
575 | +define("_MD_HELLO", "Hello %s"); |
|
576 | +define("_MD_WEAPPROVED", "We approved your submitted listing."); |
|
577 | +define("_MD_THANKSSUBMIT", "Thanks for your submission!"); |
|
578 | +define("_MD_LISTINGUPDATED", "The listing was updated succesfully!"); |
|
579 | +define("_MD_ISAPPROVED", "We approved your listing submission"); |
|
580 | 580 | |
581 | 581 | //Scheduler |
582 | -define("_MD_NO_DIRECT_ACCESS","This page cannot be accessed directly."); |
|
583 | -define("_MD_LANG_EXPIREWARNING_SUBJECT","Subscription renewal notice."); |
|
584 | -define("_MD_SCHEDULER_FINISHED","Scheduler has finished."); |
|
582 | +define("_MD_NO_DIRECT_ACCESS", "This page cannot be accessed directly."); |
|
583 | +define("_MD_LANG_EXPIREWARNING_SUBJECT", "Subscription renewal notice."); |
|
584 | +define("_MD_SCHEDULER_FINISHED", "Scheduler has finished."); |
|
585 | 585 | |
586 | 586 | //Google Maps |
587 | -define("_MD_GMAP_LON","Longitude"); |
|
588 | -define("_MD_GMAP_LAT","Lattitude"); |
|
589 | -define("_MD_GMAP_DESCR","Description of location"); |
|
587 | +define("_MD_GMAP_LON", "Longitude"); |
|
588 | +define("_MD_GMAP_LAT", "Lattitude"); |
|
589 | +define("_MD_GMAP_DESCR", "Description of location"); |
|
590 | 590 | |
591 | 591 | //Migrate from xDirectory |
592 | -define("_MD_MIGRATE_FROM_XDIR","Migrate from the xDirectory module"); |
|
593 | -define("_MD_XIDR_MIGRATE_TO_NEWDIR","Enter the name of the new directory."); |
|
594 | -define("_MD_XDIR_CREATE_EMPTY_DIR","Please create a directory before migrating from the xDirectory module. The name of the directory must have at least 1 character"); |
|
595 | -define("_MD_XDIR_FIELDTYPE_TEXTBOX","Text box"); |
|
596 | -define("_MD_XDIR_FIELDTYPE_EMAIL","e-mail"); |
|
597 | -define("_MD_XDIR_FIELDTYPE_URL","URL"); |
|
598 | -define("_MD_XDIR_DTYPE_ADDRESS","Address"); |
|
599 | -define("_MD_XDIR_DTYPE_ADDRESS2","Address 2"); |
|
600 | -define("_MD_XDIR_DTYPE_CITY","City"); |
|
601 | -define("_MD_XDIR_DTYPE_STATE","State"); |
|
602 | -define("_MD_XDIR_DTYPE_ZIP","ZIP"); |
|
603 | -define("_MD_XDIR_DTYPE_COUNTRY","Country"); |
|
604 | -define("_MD_XDIR_DTYPE_PHONE","Phone"); |
|
605 | -define("_MD_XDIR_DTYPE_FAX","Fax"); |
|
606 | -define("_MD_XDIR_DTYPE_EMAIL","E-mail"); |
|
607 | -define("_MD_XDIR_DTYPE_URL","URL"); |
|
592 | +define("_MD_MIGRATE_FROM_XDIR", "Migrate from the xDirectory module"); |
|
593 | +define("_MD_XIDR_MIGRATE_TO_NEWDIR", "Enter the name of the new directory."); |
|
594 | +define("_MD_XDIR_CREATE_EMPTY_DIR", "Please create a directory before migrating from the xDirectory module. The name of the directory must have at least 1 character"); |
|
595 | +define("_MD_XDIR_FIELDTYPE_TEXTBOX", "Text box"); |
|
596 | +define("_MD_XDIR_FIELDTYPE_EMAIL", "e-mail"); |
|
597 | +define("_MD_XDIR_FIELDTYPE_URL", "URL"); |
|
598 | +define("_MD_XDIR_DTYPE_ADDRESS", "Address"); |
|
599 | +define("_MD_XDIR_DTYPE_ADDRESS2", "Address 2"); |
|
600 | +define("_MD_XDIR_DTYPE_CITY", "City"); |
|
601 | +define("_MD_XDIR_DTYPE_STATE", "State"); |
|
602 | +define("_MD_XDIR_DTYPE_ZIP", "ZIP"); |
|
603 | +define("_MD_XDIR_DTYPE_COUNTRY", "Country"); |
|
604 | +define("_MD_XDIR_DTYPE_PHONE", "Phone"); |
|
605 | +define("_MD_XDIR_DTYPE_FAX", "Fax"); |
|
606 | +define("_MD_XDIR_DTYPE_EMAIL", "E-mail"); |
|
607 | +define("_MD_XDIR_DTYPE_URL", "URL"); |
|
608 | 608 | ?> |
609 | 609 | \ No newline at end of file |
@@ -3,28 +3,28 @@ discard block |
||
3 | 3 | // Module Info for Listings module |
4 | 4 | |
5 | 5 | // The name of this module |
6 | -define("_MI_EFQDIR_NAME","Listings directory"); |
|
6 | +define("_MI_EFQDIR_NAME", "Listings directory"); |
|
7 | 7 | |
8 | 8 | // A brief description of this module |
9 | -define("_MI_EFQDIR_DESC","Creates a listings section where directories of listings can be managed."); |
|
9 | +define("_MI_EFQDIR_DESC", "Creates a listings section where directories of listings can be managed."); |
|
10 | 10 | |
11 | 11 | // Names of blocks for this module (Not every module has blocks) |
12 | -define("_MI_EFQDIR_BNAME1","Recent Listings"); |
|
13 | -define("_MI_EFQDIR_BNAME2","Top Listings"); |
|
14 | -define("_MI_EFQDIR_MENU","Directories"); |
|
12 | +define("_MI_EFQDIR_BNAME1", "Recent Listings"); |
|
13 | +define("_MI_EFQDIR_BNAME2", "Top Listings"); |
|
14 | +define("_MI_EFQDIR_MENU", "Directories"); |
|
15 | 15 | |
16 | 16 | // Sub menu titles |
17 | -define("_MI_EFQDIR_SMNAME1","Submit"); |
|
18 | -define("_MI_EFQDIR_SMNAME2","Popular"); |
|
19 | -define("_MI_EFQDIR_SMNAME3","Top Rated"); |
|
17 | +define("_MI_EFQDIR_SMNAME1", "Submit"); |
|
18 | +define("_MI_EFQDIR_SMNAME2", "Popular"); |
|
19 | +define("_MI_EFQDIR_SMNAME3", "Top Rated"); |
|
20 | 20 | |
21 | 21 | // Names of admin menu items |
22 | -define("_MI_EFQDIR_ADMENU2","Module admin home"); |
|
23 | -define("_MI_EFQDIR_ADMENU3","Manage directories"); |
|
24 | -define("_MI_EFQDIR_ADMENU4","Manage field types"); |
|
25 | -define("_MI_EFQDIR_ADMENU5","Listings waiting for validation"); |
|
26 | -define("_MI_EFQDIR_ADMENU6","Manage address types"); |
|
27 | -define("_MI_EFQDIR_ADMENU7","Manage categories"); |
|
22 | +define("_MI_EFQDIR_ADMENU2", "Module admin home"); |
|
23 | +define("_MI_EFQDIR_ADMENU3", "Manage directories"); |
|
24 | +define("_MI_EFQDIR_ADMENU4", "Manage field types"); |
|
25 | +define("_MI_EFQDIR_ADMENU5", "Listings waiting for validation"); |
|
26 | +define("_MI_EFQDIR_ADMENU6", "Manage address types"); |
|
27 | +define("_MI_EFQDIR_ADMENU7", "Manage categories"); |
|
28 | 28 | |
29 | 29 | // Title of config items |
30 | 30 | define('_MI_EFQDIR_POPULAR', 'Select the number of hits for listings to be marked as popular'); |
@@ -32,9 +32,9 @@ discard block |
||
32 | 32 | define('_MI_EFQDIR_PERPAGE', 'Select the maximum number of listings displayed in each page'); |
33 | 33 | define('_MI_EFQDIR_USESHOTS', 'Select yes to display screenshot images for each listing'); |
34 | 34 | define('_MI_EFQDIR_USEDESTMOD', 'Use this module in combination with the destinations module?'); |
35 | -define('_MI_EFQDIR_ANONPOST','Allow anonymous users to post listings?'); |
|
36 | -define('_MI_EFQDIR_AUTOAPPROVE','Auto approve new listings without admin intervention?'); |
|
37 | -define('_MI_EFQDIR_AUTOAPPROVEADMIN','Auto approve new listings submitted by administrator?'); |
|
35 | +define('_MI_EFQDIR_ANONPOST', 'Allow anonymous users to post listings?'); |
|
36 | +define('_MI_EFQDIR_AUTOAPPROVE', 'Auto approve new listings without admin intervention?'); |
|
37 | +define('_MI_EFQDIR_AUTOAPPROVEADMIN', 'Auto approve new listings submitted by administrator?'); |
|
38 | 38 | define('_MI_EFQDIR_RESULTSPERPAGE', 'Select the number of search results per page.'); |
39 | 39 | define('_MI_EFQDIR_ANONVOTESWAITDAYS', 'Select the number of days before an anonymous user can vote for a listing again.'); |
40 | 40 | define('_MI_EFQDIR_AUTOSHOWONEDIR', 'Show directory automatically if there is only one active directory?'); |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | define('_MI_EFQDIR_PERPAGEDSC', ''); |
69 | 69 | define('_MI_EFQDIR_USEDESTMODDSC', ''); |
70 | 70 | define('_MI_EFQDIR_SHOTWIDTHDSC', ''); |
71 | -define('_MI_EFQDIR_AUTOAPPROVEDSC',''); |
|
72 | -define('_MI_EFQDIR_AUTOAPPROVEADMINDSC',''); |
|
71 | +define('_MI_EFQDIR_AUTOAPPROVEDSC', ''); |
|
72 | +define('_MI_EFQDIR_AUTOAPPROVEADMINDSC', ''); |
|
73 | 73 | define('_MI_EFQDIR_RESULTSPERPAGE_DSC', ''); |
74 | 74 | define('_MI_EFQDIR_ANONVOTESWAITDAYS_DSC', ''); |
75 | 75 | define('_MI_EFQDIR_AUTOSHOWONEDIR_DSC', ''); |
@@ -29,20 +29,20 @@ |
||
29 | 29 | $mydirname = basename( dirname( __FILE__ ) ) ; |
30 | 30 | $coupid = isset($_GET['coupid']) ? intval($_GET['coupid']) : 0; |
31 | 31 | if (!($coupid > 0) ) { |
32 | - redirect_header("index.php"); |
|
32 | + redirect_header("index.php"); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | function PrintPage($coupid) |
36 | 36 | { |
37 | - global $xoopsModule, $xoopsTpl, $xoopsModuleConfig, $mydirname; |
|
38 | - $coupon_handler =& xoops_getmodulehandler('coupon', $mydirname); |
|
39 | - $coupon_handler->increment($coupid); |
|
40 | - $coupon = $coupon_handler->getLinkedCoupon($coupid); |
|
41 | - $coupon_arr = $coupon_handler->prepare2show($coupon); |
|
42 | - //$xoopsTpl->assign('coupon_footer', $xoopsModuleConfig['coupon_footer']); |
|
43 | - $xoopsTpl->assign('coupon', $coupon_arr['items']['coupons'][0]); |
|
44 | - $xoopsTpl->template_dir = XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname(); |
|
45 | - $xoopsTpl->display('db:efqdiralpha1_print_savings.html'); |
|
37 | + global $xoopsModule, $xoopsTpl, $xoopsModuleConfig, $mydirname; |
|
38 | + $coupon_handler =& xoops_getmodulehandler('coupon', $mydirname); |
|
39 | + $coupon_handler->increment($coupid); |
|
40 | + $coupon = $coupon_handler->getLinkedCoupon($coupid); |
|
41 | + $coupon_arr = $coupon_handler->prepare2show($coupon); |
|
42 | + //$xoopsTpl->assign('coupon_footer', $xoopsModuleConfig['coupon_footer']); |
|
43 | + $xoopsTpl->assign('coupon', $coupon_arr['items']['coupons'][0]); |
|
44 | + $xoopsTpl->template_dir = XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname(); |
|
45 | + $xoopsTpl->display('db:efqdiralpha1_print_savings.html'); |
|
46 | 46 | } |
47 | 47 | //Smarty directory autodetect |
48 | 48 | $smartydir = $mydirname; |
@@ -26,16 +26,16 @@ |
||
26 | 26 | // ------------------------------------------------------------------------ // |
27 | 27 | include '../../mainfile.php'; |
28 | 28 | include XOOPS_ROOT_PATH."/header.php"; |
29 | -$mydirname = basename( dirname( __FILE__ ) ) ; |
|
29 | +$mydirname = basename(dirname(__FILE__)); |
|
30 | 30 | $coupid = isset($_GET['coupid']) ? intval($_GET['coupid']) : 0; |
31 | -if (!($coupid > 0) ) { |
|
31 | +if (!($coupid > 0)) { |
|
32 | 32 | redirect_header("index.php"); |
33 | 33 | } |
34 | 34 | |
35 | 35 | function PrintPage($coupid) |
36 | 36 | { |
37 | 37 | global $xoopsModule, $xoopsTpl, $xoopsModuleConfig, $mydirname; |
38 | - $coupon_handler =& xoops_getmodulehandler('coupon', $mydirname); |
|
38 | + $coupon_handler = & xoops_getmodulehandler('coupon', $mydirname); |
|
39 | 39 | $coupon_handler->increment($coupid); |
40 | 40 | $coupon = $coupon_handler->getLinkedCoupon($coupid); |
41 | 41 | $coupon_arr = $coupon_handler->prepare2show($coupon); |