Stream Pay with PayPal
Using Jamroom
As of right now the Stream Pay module requires the jrFoxyCart module. It hasn't been updated to work with the jrPayments module.
/**
* Get current banned config for a given ban type
* @param $type string
* @return bool|mixed|string
*/
function jrBanned_get_banned_config($type)
{
if (!is_array($type)) {
$type = array($type);
}
$key = "jrbanned_is_banned_" . json_encode($type);
if (!$_rt = jrCore_get_flag($key)) {
if (!$_rt = jrCore_is_cached('jrBanned', $key, false, false)) {
$tbl = jrCore_db_table_name('jrBanned', 'banned');
$req = "SELECT ban_type AS t, ban_value AS v FROM {$tbl} WHERE ban_type IN('" . implode("','", $type) . "')";
$_rt = jrCore_db_query($req, 'NUMERIC');
if (!$_rt || !is_array($_rt)) {
$_rt = 'no_items';
}
jrCore_set_flag($key, $_rt);
jrCore_add_to_cache('jrBanned', $key, $_rt, 0, 0, false, false);
}
}
if (!$_rt || !is_array($_rt) || count($_rt) === 0) {
// No items of this type
return false;
}
return $_rt;
}
$_stuff = array(
'things' => 'some things',
'bits' => 'and pieces'
);
jrCore_set_flag('some_key', $_stuff);
// then later somewhere else
$_stuff = jrCore_get_flag('some_key');
jrCore_set_temp_value('xxYourModule', 'some_key', $_stuff);
// then later somewhere else
$_stuff = jrCore_get_temp_value('some_key');