Ejemplo n.º 1
0
<?php

require_once "../lib/init.php";
require_once "../lib/settings.php";
$ch_set = new CashSett($db, $usr, $lng);
echo json_encode($ch_set->getDbs());
?>

Ejemplo n.º 2
0
    <?php 
}
?>
    <?php 
if ($usr->rghts['read'] != 1) {
    require_once "lib/settings.php";
    $set = new CashSett($db, $usr);
    ?>
      <form id="login_form" method="post">
        <div><label for="db"><?php 
    echo $lng->get(7);
    ?>
: </label>
        <select id="db" name="login_db_name_list_cb">
          <?php 
    $dbs = $set->getDbs();
    foreach ($dbs as $db) {
        ?>
          <option value="<?php 
        echo $db['id'];
        ?>
"<?php 
        if ($db['id'] == $_COOKIE['DB_ID']) {
            ?>
 selected<?php 
        }
        ?>
><?php 
        echo $db['name'];
        ?>
</option>