Location: PHPKode > projects > JibberBook - Free PHP Guestbook script > jibberbook-2.3/inc/functions.php
<?php
//-------------------------------------------------------------------------------------
//	JibberBook v2.3
//	(c) 2009 Chris Jaure
//	license: MIT License
//	website: http://www.jibberbook.com/
//
//	inc/functions.php
//-------------------------------------------------------------------------------------

// translation functions
function __($str) {
    global $lang;
    
    if ($lang[$str] != "")
        return $lang[$str];
    else
        return $str;
}

function _e($str) {
    echo __($str);
}

// get session variable if it exists
function _s($key) {
    if (isset($_SESSION[$key])) echo $_SESSION[$key];
}
?>
Return current item: JibberBook - Free PHP Guestbook script