wrote this file. * As long as you retain this notice you can do whatever you want with this * software. If we meet some day, and you think this stuff is worth it, you can * buy me a beer in return. * Sandino Araico Sánchez * --END LICENSE--------------------------------------------------------------- * --LICENCIA EN ESPAÑOL MEXICANO---------------------------------------------- * "LA LICENCIA BEER-WARE" (traducción al español de la revisión 42-sandino-3): * Sandino Araico Sánchez escribió éste archivo. * Siempre y cuando usted retenga éste aviso (en español y en inglés) usted * puede hacer cualquier cosa con éste software. Si algún día nos encontramos y * usted piensa que éste software vale la pena, usted puede invitarme una * cerveza en recompensa. * Sandino Araico Sánchez * --FIN DE LICENCIA----------------------------------------------------------- */ # Changelog: # 2000-10-26 Sandino Araico Sánchez if(!defined("__HOPP_DB_CONTAINER")) { define("__HOPP_DB_CONTAINER",1); #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- function hopp_db_container($function, $params="", $use_global=1) { if(use_global) { global $__HOPP_DATABASE_CONNECTION_ID__; if($__HOPP_DATABASE_CONNECTION_ID__) return; } $id=hopp_db_connect(); s_log("Database connection id: $id"); if(!$id) return; if(use_global) { $__HOPP_DATABASE_CONNECTION_ID__=$id; } if(function_exists($function)) $function($id, $params); hopp_db_release($id); } #---------------------------------------------------------------------------- } // __HOPP_DB_CONTAINER ?>