예제 #1
0
function crayon_set_info($info_array)
{
    global $CRAYON_VERSION, $CRAYON_DATE, $CRAYON_AUTHOR, $CRAYON_WEBSITE;
    if (!is_array($info_array)) {
        return;
    }
    crayon_set_info_key('Version', $info_array, $CRAYON_VERSION);
    if (($date = @filemtime(CRAYON_README_FILE)) !== FALSE) {
        $CRAYON_DATE = date("jS F, Y", $date);
    }
    crayon_set_info_key('AuthorName', $info_array, $CRAYON_A);
    crayon_set_info_key('PluginURI', $info_array, $CRAYON_WEBSITE);
}
예제 #2
0
function crayon_set_info($info_array)
{
    global $CRAYON_VERSION, $CRAYON_DATE, $CRAYON_AUTHOR, $CRAYON_WEBSITE;
    if (!is_array($info_array)) {
        return;
    }
    crayon_set_info_key('Version', $info_array, $CRAYON_VERSION);
    crayon_set_info_key('Date', $info_array, $CRAYON_DATE);
    crayon_set_info_key('AuthorName', $info_array, $CRAYON_AUTHOR);
    crayon_set_info_key('PluginURI', $info_array, $CRAYON_WEBSITE);
}