'; echo '
'; echo '
'; echo '
' . "\n"; echo '

'; echo "

".$title."

\n"; echo '
' . "\n"; call_user_func($callback); echo "
"; } } if (function_exists('amrp_flag_error')) return;{ function amrp_flag_error ($text) { echo '
'.$text.'
'; } } if (function_exists('amrp_message')) return; { function amrp_message ($text) { echo '

'.$text.'

'; } } /** -----------------------------------------------------------------------------------*/ /* * Convert an object to an array * * @param object $object The object to convert * @reeturn array * */ if (function_exists('amrp_objectToArray')) return; { function amrp_objectToArray( $object ) { /* useful for converting any meta values that are objects into arrays */ if (gettype ($object) == 'object') { $s = (get_object_vars ($object)); if (isset ($s['__PHP_Incomplete_Class_Name'])) unset ($s['__PHP_Incomplete_Class_Name']); /* forced access */ return($s); } else if (is_array ($object)) return array_map( 'amrp_objectToArray', $object ); /* repeat function on each value of array */ else return ($object ); } } if (function_exists('amrp_novalue')) return; { function amrp_novalue ($v) { /* since empty returns true on 0 and 0 is valid , use this instead */ return (empty($v) or (strlen($v) <1)); }; }