
October 16th, 2012, 05:28 PM
|
 |
Still alive
|
|
Join Date: Mar 2007
Location: Washington, USA
|
|
Well that sucks.
You can stuff everything into a database and look it up there, or build a gigantic array of all the pairs.
PHP Code:
$lookup = array(
"83517543-blackberry" => "83517543",
"83517543-capuccino" => "83517543",
// etc
);
echo "var pr_page_id = '" . (isset($lookup[$raw_page_id]) ? $lookup[$raw_page_id] : $raw_page_id) . "';";
|