Exemplo n.º 1
0
     // start ModuleHandler
     global $ModuleHandler;
     $ModuleHandler = new ts_ModuleHandler();
     include_once 'functions/setModules.func.php';
     if (setModules() and isset($_POST['submit_build'])) {
         include_once 'functions/parseAll.func.php';
         parseAll();
     }
     header('Location:?event=showModules');
     exit;
 case 'parseAll':
     // start ModuleHandler
     global $ModuleHandler;
     $ModuleHandler = new ts_ModuleHandler();
     include_once 'functions/parseAll.func.php';
     parseAll();
     header('Location:?event=showModules');
     exit;
 case 'installModule':
     include_once 'functions/installModule.func.php';
     installModule();
     header('Location:?event=showModules');
     exit;
 case 'updateModule':
     include_once 'functions/updateModule.func.php';
     updateModule();
     header('Location:?event=showModules');
     exit;
 case 'uninstallModule':
     include_once 'functions/uninstallModule.func.php';
     uninstallModule();
Exemplo n.º 2
0
while ($data = mysql_fetch_assoc($result)) {
    $groups .= '<a style="font-weight:bold;" href="/traffa/groups.php?action=goto&amp;groupid=' . $data['groupid'] . '">' . $data['name'] . '</a> ';
}
if (isset($groups)) {
    echo '<div class="contentPostbox" style="border-bottom:0px;">';
    echo 'Grupper jag är med i: ' . $groups;
    echo '</div>';
}
if ($userdata['traffa']['bgimage'] > 100) {
    $div_extra = ' background-image: url(\'' . $hp_url . 'images/traffabgs/' . $userdata['traffa']['bgimage'] . '.jpg\');';
} elseif ($userdata['traffa']['bgimage'] > 0) {
    $div_extra = ' background-image: url(\'' . $hp_url . 'images/traffabgs/' . $userdata['traffa']['bgimage'] . '.png\');';
}
echo '<div class="contentPostbox" style="' . $div_extra . '">';
if (strlen($userdata['traffa']['presentation']) > 0) {
    echo setSmilies(nl2br(parseAll(stripslashes($userdata['traffa']['presentation']))), 25);
} else {
    echo '<i>' . $userdata['login']['username'] . ' har inte skrivit någon presentation än.</i>';
}
echo '</div><br />';
if ($_SESSION['login']['userlevel'] >= USERLEVELS_EDIT_PRESENTATION) {
    echo '<a href="/traffa/admin_edit_presentation.php?id=' . $userid . '">Ändra denna persons presentation</a>';
}
if ($userdata['traffa']['personality'] != 0) {
    echo '<div class="contentPostbox" style="margin-top: 10px">';
    echo '<b>Personlighet: ' . $traffaDefPersonalities[$userdata['traffa']['personality']] . '</b><br>';
    echo $traffaDefPersonalitiesDesc[$userdata['traffa']['personality']] . '<br><br>';
    echo '<font style="font-size: 10px; font-style: italic;">(Denna personlighetsbeskrivning har författats av crew i syfte att underhålla och bör inte tas på för stort allvar.)</font>';
    echo '</div>' . "\n";
}
$query = 'SELECT i.id, i.name, i.image, i.type, ';
    echo "\tpublic String getIso639() {\n";
    echo "\t\treturn " . '"' . $lang . '"' . ";\n";
    echo "\t}\n";
    echo "}\n";
    $contents = ob_get_contents();
    ob_end_clean();
    return $contents;
}
$i = 0;
$langs = array();
$searchpath = dirname(__FILE__) . "/languages/messages";
foreach (scandir($searchpath) as $file) {
    if (is_file($searchpath . "/" . $file)) {
        if (preg_match("/Messages([A-Za-z]+)\\.php\$/", $file, $matches)) {
            array_push($langs, strtolower($matches[1]));
            file_put_contents($targetdir . "/" . $matches[1] . "Config.java", getJava(strtolower($matches[1]), parseAll($searchpath . "/" . $file)));
            $i++;
        }
    }
}
ob_start();
?>
package se.lth.cs.nlp.wikipedia.lang;

import java.util.HashMap;
/**
 * This file is part of Wikiforia.
 *
 * Wikiforia is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or