Example #1
0
}
if (isset($browse_letter) && strtoupper($browse_letter) == "YES") {
    $DISPLAY_LETTER = true;
}
if (isset($letter) && strlen($letter) != 0) {
    add_clause($FG_TABLE_CLAUSE, "t7.destination REGEXP '^[" . strtolower($letter) . strtoupper($letter) . "]'");
}
if (isset($tariffgroupid) && strlen($tariffgroupid) != 0) {
    $FG_TABLE_NAME = "cc_ratecard t1, cc_tariffplan t4, cc_tariffgroup t5, cc_tariffgroup_plan t6, cc_prefix t7";
    add_clause($FG_TABLE_CLAUSE, "t4.id = t6.idtariffplan AND t6.idtariffplan=t1.idtariffplan AND t6.idtariffgroup = '{$tariffgroupid}' AND t7.prefix=t1.destination");
} else {
    $FG_TABLE_NAME = "cc_ratecard t1, cc_prefix t7";
    add_clause($FG_TABLE_CLAUSE, "t7.prefix=t1.destination");
    if (isset($ratecardid) && strlen($ratecardid) != 0) {
        $FG_TABLE_NAME = "cc_ratecard t1, cc_tariffplan t4";
        add_clause($FG_TABLE_CLAUSE, "t4.id = '{$ratecardid}' AND t1.idtariffplan = t4.id AND t7.prefix=t1.destination");
    }
}
if ($FILTER_COUNTRY || $DISPLAY_LETTER) {
    $nb_display_lines = 100;
    $FG_LIMITE_DISPLAY = $nb_display_lines;
}
$FG_DEBUG = 0;
$DBHandle = DbConnect();
$FG_TABLE_COL = array();
if (count($column) == count($field) && count($field) == count($type) && count($column) != 0) {
    for ($i = 0; $i < count($column); $i++) {
        switch ($type[$i]) {
            case "money":
                $bill = "display_2bill";
                break;
Example #2
0
}
function print_license_point($header, $info)
{
    global $clauses;
    echo "<hr>\n\t\t\t<div class='license-point'>\n\t\t\t\t<div class='license-point-header'>\n\t\t\t\t\t<span class='text-muted'>{$header}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class='license-point-info'>\n\t\t\t\t\t{$info}\n\t\t\t\t</div>\n\n\t\t\t\t<div class='license-clauses'>\n\t\t\t\t\t{$clauses}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t";
    $clauses = '';
}
?>

<b><?php 
echo $mod_name;
?>
 is distributed under a reasonably open license. You probably want to have a read through this if you want to do something with it other than just play.</b><br>
You are completely free and have the right to <b>Use</b>, <b>Share</b> and <b>Adapt</b> the mod. These rights can not be removed from you as long as follow the license terms.<br>
If you simply wish to play with the mod and do nothing else, go for it, this page is of no use to you.

<?php 
add_clause($clause_personal_permission);
add_clause($clause_waive);
add_clause($clause_extensive);
add_clause($clause_non_court);
print_license_point('<b>General Clauses</b>', 'Clauses that apply in general to any of the uses that follow.');
add_clause($clause_attribution);
add_clause($clause_non_monetary);
print_license_point("If you want to <b>Distribute {$mod_name}</b>", '"Distribution" refers to making available binaries, assets, or source of the mod available from the original sources as part of your modpack or otherwise.');
add_clause($clause_thief);
print_license_point("If you want to <b>Feature {$mod_name}</b>", "\"Featuring\" refers to using {$mod_name} in an environment where you do not distribute binaries, assets, or source. An example would be a YouTube Let's Play.");
add_clause($clause_attribution);
add_clause($clause_open_source);
add_clause($clause_api);
print_license_point("If you want to <b>Use {$mod_name} Code or Assets</b>", 'Usage of code or assets falls under the Extensive Clause.');
Example #3
0
    return "\n\t\t<div class='license-clause'>\n\t\t\t<div class='license-clause-icon'>\n\t\t\t\t\t<span class='glyphicon glyphicon-{$glyphicon}'></span>\n\t\t\t</div>\n\t\t\t<div class='license-clause-info'>\n\t\t\t\t<div class='license-clause-name'>\n\t\t\t\t\t<span class='text-muted'><b>{$name}</b> Clause</span>\n\t\t\t\t</div>\n\t\t\t\t<div class='license-clause-desc'>\n\t\t\t\t\t{$desc}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>";
}
function print_license_point($header, $info)
{
    global $clauses;
    echo "<hr>\n\t\t\t<div class='license-point'>\n\t\t\t\t<div class='license-point-header'>\n\t\t\t\t\t<span class='text-muted'>{$header}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class='license-point-info'>\n\t\t\t\t\t{$info}\n\t\t\t\t</div>\n\n\t\t\t\t<div class='license-clauses'>\n\t\t\t\t\t{$clauses}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t";
    $clauses = '';
}
?>

<b><?php 
echo $mod_name;
?>
 is distributed under a reasonably open license. You probably want to have a read through this if you want to do something with it other than just play.</b><br>
You are completely free and have the right to <b>Use</b>, <b>Share</b> and <b>Adapt</b> the mod. These rights can not be removed from you as long as follow the license terms.<br>
If you simply wish to play with the mod and do nothing else, go for it, this page is of no use to you.

<?php 
add_clause($clause_personal_permission);
add_clause($clause_waive);
add_clause($clause_extensive);
add_clause($clause_non_court);
print_license_point('<b>General Clauses</b>', 'Clauses that apply in general to any of the uses that follow.');
add_clause($clause_attribution);
add_clause($clause_non_monetary);
print_license_point("If you want to <b>Distribute {$mod_name}</b>", '"Distribution" refers to making available binaries or source of the mod available from the original sources as part of your modpack or otherwise.');
add_clause($clause_thief);
print_license_point("If you want to <b>Feature {$mod_name}</b>", "\"Featuring\" refers to using {$mod_name} in an environment where you do not distribute binaries or source. An example would be a YouTube Let's Play.");
add_clause($clause_attribution);
add_clause($clause_open_source);
print_license_point("If you want to <b>Use {$mod_name} Code</b>", 'Usage of code falls under the Extensive Clause.');
Example #4
0
    }
}
if (isset($browse_letter) && strtoupper($browse_letter) == "YES") {
    $DISPLAY_LETTER = true;
}
if (isset($letter) && strlen($letter) != 0) {
    add_clause($FG_TABLE_CLAUSE, "t1.destination LIKE '" . strtolower($letter) . "%'");
}
if (isset($tariffgroupid) && strlen($tariffgroupid) != 0) {
    $FG_TABLE_NAME = "cc_ratecard t1, cc_tariffplan t4, cc_tariffgroup t5, cc_tariffgroup_plan t6";
    add_clause($FG_TABLE_CLAUSE, "t4.id = t6.idtariffplan AND t6.idtariffplan=t1.idtariffplan AND t6.idtariffgroup = '{$tariffgroupid}'");
} else {
    $FG_TABLE_NAME = "cc_ratecard t1";
    if (isset($ratecardid) && strlen($ratecardid) != 0) {
        $FG_TABLE_NAME = "cc_ratecard t1, cc_tariffplan t4";
        add_clause($FG_TABLE_CLAUSE, "t4.id = '{$ratecardid}' AND t1.idtariffplan = t4.id");
    }
}
if ($FILTER_COUNTRY || $DISPLAY_LETTER) {
    $nb_display_lines = 100;
    $FG_LIMITE_DISPLAY = $nb_display_lines;
}
// this variable specifie the debug type (0 => nothing, 1 => sql result, 2 => boucle checking, 3 other value checking)
$FG_DEBUG = 0;
// The variable FG_TABLE_NAME define the table name to use
//$link = DbConnect();
$DBHandle = DbConnect();
// First Name of the column in the html page, second name of the field
$FG_TABLE_COL = array();
if (count($column) == count($field) && count($field) == count($type) && count($column) != 0) {
    for ($i = 0; $i < count($column); $i++) {