예제 #1
0
/**
 * delete repository
 * @param array $where
 * @return mixed
 */
function hw_svn_del_repository($where = array())
{
    return HW_DB::del_table_rows(HW_DB::svn_repositories, $where);
}
예제 #2
0
 */
/**
 * Libs path
 */
define('HWCP_LIBS_PATH', dirname(dirname(__FILE__)) . '/libs');
//include classes file
define('HWCP_CLASSES_PATH', dirname(__FILE__) . '/classes');
/**
 * through composer library
 */
include HWCP_LIBS_PATH . '/vendor/autoload.php';
//
/**
 * ADBDb
 */
include HWCP_LIBS_PATH . '/adodb5/adodb.inc.php';
include HWCP_CLASSES_PATH . '/database.class.php';
//database mysql
//php hooks
include_once HWCP_LIBS_PATH . '/php-hooks.php';
/**
 * twig template
 */
include HWCP_CLASSES_PATH . '/twig_template.class.php';
//
// Create connection
global $DB;
$conn = HW_DB::connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
// twig template
global $twig;
HW_Twig_engine::init(ROOT_DIR . '/template');