Example #1
0
        <?php 
        }
    }
    ?>
    </div>
  </div>
<?php 
} else {
    $sql = \Lobby\DB::getDBH()->prepare("SELECT * FROM `apps` WHERE `id` = ?");
    $sql->execute(array($node));
    if ($sql->rowCount() == "0") {
        ser();
    } else {
        $this->addStyle("app.css");
        $appInfo = $sql->fetch(\PDO::FETCH_ASSOC);
        \Response::setTitle($appInfo['name'] . " | Store");
        require_once $this->dir . "/src/inc/Parsedown.php";
        $Parsedown = new Parsedown();
        ?>
    <div class="contents">
      <?php 
        $no_header = 1;
        require_once $this->dir . "/src/inc/views/top.apps.php";
        ?>
      <h1>
        <a href=""><?php 
        echo $appInfo['name'];
        ?>
</a>
        <a data-path="/admin/lobby-store.php?app=<?php 
        echo $node;
Example #2
0
<div class="contents">
  <h1>Lobby Demo</h1>
  <p>Check out Lobby before you download !</p>
  <p>But before seeing demo, note these :</p>
  <ul>
    <li>Some apps may not work in the demo</li>
    <li>The server runs on PHP 5.4 and some old packages.<br/>So, bugs are possible.</li>
  </ul>
  <a class="btn red" href="https://lobby-ccl4.rhcloud.com">Go To Demo</a>
</div>
<style>
ul, li{
  list-style-type: disc !important;
}
ul{
  padding: 5px 30px;
}
</style>
<?php 
\Response::setTitle("Web");
require_once $this->dir . "/src/inc/views/track.php";
Example #3
0
<?php

$docs_location = $this->dir . "/src/data/mods/";
$docs = array_diff(scandir($docs_location), array('..', '.'));
$doc = isset($doc) ? $doc . ".md" : "index.md";
if (isset($doc) && array_search($doc, $docs) !== false) {
    $doc_path = "{$docs_location}/{$doc}";
    $f = fopen($doc_path, 'r');
    $doc_name = fgets($f);
    $content = fread($f, filesize($doc_path));
    fclose($f);
    if (substr($doc, 0, 4) === "dev.") {
        $doc = substr_replace($doc, '', 0, 4);
        \Response::setTitle($doc_name . " | Developer Documentation");
    } else {
        \Response::setTitle($doc_name . " | Modules");
    }
} else {
    ser();
}
$this->addStyle("docs.css");
?>
<div class="sidebar">
  <div style="position: absolute;right: 0px;top: 0px;bottom: 0px;width: 2px;box-shadow: -5px 0px 30px rgba(0,0,0,1);"></div>
  <ul>
    <li>
      <li><?php 
echo \Lobby::l("/mods", "<h4 style='padding-top: 0;'>Modules</h4>", 'class="head"');
?>
</li>
      <ul>
Example #4
0
                                        require_once $this->dir . "/src/inc/open.auth.php";
                                        $Opth = new OpenAuth("EAtGbLfgxiCJxhwWfsLsyxA0p8Zj4oUyOd4POaVc", "80d23edfa535caf4cc44b91e16c55c0f09e3bed927fecff96b092df0f517f410");
                                        $Opth->action("email", array("subject" => "Lobby App Review", "body" => "Dude, a person requested to review her/his app ({$app_info['id']}). Please go and check it. http://lobby.subinsb.com"), $admin_access_token);
                                        sss("App Submitted", "Your app was added to the review queue. You will be notified by email about your app's review status.");
                                    } else {
                                        $sql = \Lobby\DB::getDBH()->prepare("UPDATE `apps` SET `name` = ?, `logo` = ?, `description` = ?, `category` = ?, `sub_category` = ?, `app_page` = ?, `lobby_web` = ?, `updated` = NOW() WHERE `id` = ? AND `author` = ?");
                                        $sql->execute(array($app_info['name'], $app_info['logo'], $app_info['description'], $app_info['category'], $app_info['sub_category'], $app_info['app_page'], $app_info['lobby_web'], $app_info['id'], \Fr\LS2::$user));
                                        sss("Updated", "Your app was successfully updated.");
                                    }
                                }
                            }
                        }
                        if ($app_edit) {
                            \Response::setTitle("Edit App " . $app_info['name'] . " | Me");
                        } else {
                            \Response::setTitle("New App | Me");
                        }
                        ?>
    <h1><?php 
                        echo $app_edit == true ? $app_info['name'] : "New App";
                        ?>
</h1>
    <p>Use the following form to fill information about your app. After you submit, an admin will review your app and take the final decision whether to add your app to the App Center.</p>
    <?php 
                        if ($app_edit === true) {
                            ?>
      <h2>Update</h2>
      <?php 
                            if (isset($_GET['app-updated'])) {
                                echo sss("Updated App", "The app was updated from the Git source.");
                            }
Example #5
0
<?php

$this->addStyle("main.css");
$this->addScript("responsiveslides.min.js");
\Response::setTitle("Run Desktop Web Apps");
?>
<section id="intro">
  <div class="container">
    <div class="row">
      <a href='//lobby.subinsb.com'><img src='<?php 
echo $this->srcURL . "/src/image/logo.png";
?>
' /></a>
      <div class="section-intro">Run <a class="underlined" href="/docs/about#desktop-web-apps-?">desktop web apps</a><div class="byline">With PHP, JavaScript and CSS</div></div>
    </div>
  </div>
</section>
<section id="runs-in" class="even-section">
  <div class='browser-window'>
    <div class='top-bar'>
      <div class='circles'>
         <div class="circle red"></div>
         <div class="circle yellow"></div>
         <div class="circle green"></div>
         <div class="title">Google Chrome</div>
      </div>
    </div>
    <div class='page-url'>
      <a class="action-btn previous" href="#"></a>
      <a class="action-btn next" href="#"></a>
      <div id='page-url'>http://localhost/lobby</div>
Example #6
0
File: u.php Project: LobbyOS/server
<?php

$sql = \Lobby\DB::getDBH()->prepare("SELECT * FROM `users` WHERE `id` = ?");
$sql->execute(array($user));
if ($sql->rowCount() != 0) {
    $u = $sql->fetch(\PDO::FETCH_ASSOC);
    \Response::setTitle($u['display_name']);
    ?>
  <div class="contents">
    <h1><?php 
    echo $u['display_name'];
    ?>
</h1>
    <p>Real Name : <?php 
    echo $u['name'];
    ?>
</p>
    <p>Member of Lobby since <?php 
    echo date("d F Y", $u['registered']);
    ?>
</p>
    <h2>Apps</h2>
    <?php 
    $sql = \Lobby\DB::getDBH()->prepare("SELECT `id`, `name`, `short_description`, `downloads` FROM `apps` WHERE `author` = ?");
    $sql->execute(array($user));
    if ($sql->rowCount() != 0) {
        echo "<table>";
        echo "<thead><tr><td>App</td><td>Description</td><td>Downloads</td></tr></thead>";
        echo "<tbody>";
        while ($r = $sql->fetch()) {
            echo "<tr>\n              <td><a target='_blank' href='/apps/{$r['id']}'>{$r['name']}</a></td>\n              <td>{$r['short_description']}</td>\n              <td>{$r['downloads']}</td>\n            </tr>";
Example #7
0
<?php

$docs_location = $this->dir . "/src/data/docs/";
$docs = array_diff(scandir($docs_location), array('..', '.'));
$doc = isset($doc) ? $doc . ".md" : "index.md";
if (isset($doc) && array_search($doc, $docs) !== false) {
    $doc_path = "{$docs_location}/{$doc}";
    $f = fopen($doc_path, 'r');
    $doc_name = fgets($f);
    $content = fread($f, filesize($doc_path));
    fclose($f);
    if (substr($doc, 0, 4) === "dev.") {
        $doc = substr_replace($doc, '', 0, 4);
        \Response::setTitle($doc_name . " | Developer Documentation");
    } else {
        \Response::setTitle($doc_name . " | Documentation");
    }
} else {
    ser();
}
$this->addStyle("docs.css");
?>
<div class="sidebar">
  <div style="position: absolute;right: 0px;top: 0px;bottom: 0px;width: 2px;box-shadow: -5px 0px 30px rgba(0,0,0,1);"></div>
  <ul>
    <li class="doc-side-head">
      <?php 
echo \Lobby::l("/docs", "Preface", 'class="head"');
?>
      <ul>
        <li><?php 
Example #8
0
<?php

\Response::setTitle("Download");
?>
<div class="contents">
  <h1>Download</h1>
	<p>Lobby can be installed in many ways for different platforms.</p>
  <p>If you already have a Web Server Installed, <a href="#direct" onclick="$('.contents .tab:last a').click()">do this</a>. Or you can use the <b>Standalone</b> packages.</p>
  <ul class="tabs">
    <li class="tab"><a href="#windows">Windows</a></li>
    <li class="tab"><a href="#linux">Linux</a></li>
    <li class="tab"><a href="#mac">macOS</a></li>
    <li class="tab"><a href="#direct">Server Version</a></li>
  </ul>
  <div id="windows">
    <h2>Windows</h2>
    <p>Download the Zip file and extract the "Lobby" folder inside it to a location of your choice.</p>
    <p>Run the "Lobby.exe" file in the folder to open Lobby</p>
    <a class="btn blue" href="<?php 
L_URL;
?>
/api/lobby/download/windows" style="display: table;font-size: 18px;">Download Zip<font size='1' style='display:block;margin-top: -10px;'>Windows 7, Windows 8, Windows 10</font></a>
    <p><a href="/docs/quick/windows" class="btn">How To Install ?</a></p>
  </div>
  <div id="linux">
    <h2>Linux</h2>
    <p>Download the <b>Lobby-Linux.zip</b> file and extract the folder inside the Zip file to anywhere you like.</p>
    <a class="btn red" href="<?php 
L_URL;
?>
/api/lobby/download/linux" style="display: table;font-size: 18px;">Download Lobby-Linux.zip<font size='1' style='display:block;margin-top: -10px;'>Ubuntu, Linux Mint, openSUSE, Fedora, CentOS, ArchLinux, ElementaryOS etc.</font></a>