Logo Search packages:      
Sourcecode: ukolovnik version File versions  Download package

extensions.php

<?php
// vim: expandtab sw=4 ts=4 sts=4:

// This is extension checking for Ukolovnik
// Copyright © 2005 - 2008 Michal Čihař
// Published under GNU GPL version 2

$required_extensions = array('mysql' => 'mysql_connect', 'pcre' => 'preg_replace');

/**
 * Checks whethere required extensions are installed.
 */
function EXTENSIONS_check() {
    global $required_extensions;

    $result = array();

    foreach($required_extensions as $name => $function) {
        if (!function_exists($function)) {
            $result[] = $name;
        }
    }

    return $result;
}
?>

Generated by  Doxygen 1.6.0   Back to index