Diff of /trunk/webroot/profile.php
Parent Directory
|
Revision Log
|
Patch
| revision 105, Sun Jul 1 02:51:50 2012 UTC | revision 106, Mon Jul 2 17:59:38 2012 UTC | |
|---|---|---|
| # | Line 105 | Line 105 |
| 105 | if ($description == "") | if ($description == "") |
| 106 | $description = "No Description"; | $description = "No Description"; |
| 107 | ||
| 108 | //If PG, Mature, and Adult flags are all 0 assume PG and set bit 2. | |
| 109 | //This works around what might be a viewer bug regarding the flags. | |
| 110 | //The ossearch query.php file expects bit 2 set for any PG listing. | |
| 111 | if (($classifiedflag & 76) == 0) | |
| 112 | $classifiedflag |= 4; | |
| 113 | ||
| 114 | if ($ready == 0) | if ($ready == 0) |
| 115 | { | { |
| 116 | //Renew Weekly flag is 32 (1 << 5) | //Renew Weekly flag is 32 (1 << 5) |
| 117 | if ($classifiedflag == 0) | if ($classifiedflag & 32 == 0) |
| 118 | { | { |
| 119 | $creationdate = time(); | $creationdate = time(); |
| 120 | $expirationdate = time() + (7 * 24 * 60 * 60); | $expirationdate = time() + (7 * 24 * 60 * 60); |
| 121 | } | } |
| 122 | else /* classifiedflag == 32 */ | else |
| 123 | { | { |
| 124 | $creationdate = time(); | $creationdate = time(); |
| 125 | $expirationdate = time() + (52 * 7 * 24 * 60 * 60); | $expirationdate = time() + (52 * 7 * 24 * 60 * 60); |
| # | Line 679 | Line 685 |
| 685 | # | # |
| 686 | ||
| 687 | $request_xml = $HTTP_RAW_POST_DATA; | $request_xml = $HTTP_RAW_POST_DATA; |
| 688 | ||
| 689 | xmlrpc_server_call_method($xmlrpc_server, $request_xml, ''); | xmlrpc_server_call_method($xmlrpc_server, $request_xml, ''); |
| 690 | xmlrpc_server_destroy($xmlrpc_server); | xmlrpc_server_destroy($xmlrpc_server); |
| 691 | ?> | ?> |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

