} switch ($op) { default: theindex(); break; case "sitestats": sitestats(); break; case "plans": plans(); break; case "terms": terms(); break; case "client": client(); break; case "client_home": client_home(); break; case "client_valid": client_valid($login, $pass); break; case "client_logout": client_logout(); break; case "client_report": client_report($cid, $bid); break; case "view_banner": view_banner($cid, $bid);
logo_site.png" width="150" border="0" /> <div> <?php $link_site = JUri::base(); ?> <a href="<?php echo $link_site; ?> " class="sa_fact_site"><?php echo JText::_('SAUTO_FACTURA_SITE'); ?> </a> </div> </td> <td valign="top" width="35%"><?php client($uid); ?> </td> </tr> <tr> <td colspan="3" align="center"><?php echo JText::_('SA_FACT_FACT_NR') . ' ' . $serii[2] . ' ' . JText::_('SA_FACT_DIN_DATA') . ' ' . $data[0]; ?> </td> </tr> <tr> <td colspan="3"> <table width="100%"> <tr> <td class="sa_factura_header"><?php echo JText::_('SAUTO_FACT_NR_CRT');
} echo $style->get("footer.tpl"); } } elseif ($_SESSION['clogged']) { // Check if user still exists $user = $db->fetch_array($db->query("SELECT COUNT(*) FROM `<PRE>users` WHERE `id` = '{$db->strip($_SESSION['cuser'])}'")); if ((int) $user[0] === 0) { // Oh dear. session_destroy(); $main->redirect("?page=home"); } unset($user); if (!$main->getvar['page']) { $main->getvar['page'] = "home"; } elseif ($main->getvar['page'] == "logout") { session_destroy(); $main->redirect("?page=home"); } if (!$db->config("cenabled")) { define("SUB", "Disabled"); define("INFO", SUB); $content = '<div align="center">' . $main->table("Client Area - Disabled", $db->config("cmessage"), "300px") . '</div>'; } else { $content = client(); } echo $style->get("header.tpl"); echo $content; echo $style->get("footer.tpl"); } // End the sctipt include LINK . "output.php";
<?php $sotin1trang = 20; $trang = $_GET["trang"]; settype($trang, "int"); if ($trang <= 0) { $trang = 1; } $tongtin = client(); $tongsotin = mysql_num_rows($tongtin); $sotrang = ceil($tongsotin / $sotin1trang); ?> <div class="title_style">ĐỐI TÁC - KHÁCH HÀNG</div> <div class="wrap_page_act"> <div id="usual1" class="usual"> <ul> <li><a href="#tab1">DANH SÁCH KHÁCH HÀNG</a></li> <li><a href="#tab2">THÊM KHÁCH HÀNG</a></li> </ul> <div class="tab_content" id="tab1"> <table width="100%" class="table_style"> <tr class="text_tr_style"> <td width="30">ID</td> <td width="80">Hình ảnh</td> <td class="text_left">Đường dẫn</td> <td width="120">Thay đổi</td> </tr> <?php $item = client_paging($trang, $sotin1trang); while ($row_item = mysql_fetch_array($item)) {
function start_retrieval_job(Job $job, DateTime $start_time) { $oResult = client()->initiateJob(array('accountId' => '-', 'vaultName' => VAULT, 'ArchiveId' => $job->get('archive_id'), 'RetrievalByteRange' => $job->get('start') . "-" . $job->get('end'), 'Type' => 'archive-retrieval')); $job->set('start_time', $start_time); $job->set('running', 1); $job->set('jobId', $oResult->get('jobId')); }
<img src="<?php echo $img_path; ?> logo_site.png" width="150" border="0" /> <div> <?php $link_site = JUri::root(); ?> <a href="<?php echo $link_site; ?> " class="sa_fact_site">www.siteauto.ro</a> </div> </td> <td valign="top" align="right"><?php client($date_f->uid); ?> </td> </tr> <tr> <td colspan="3" align="center"><?php echo 'Fact. nr. ' . $serii[2] . ' din data ' . $data[0]; ?> </td> </tr> <tr> <td colspan="3"> <table width="100%"> <tr> <td class="sa_factura_header">Nr. Crt.</td> <td class="sa_factura_header">Denumire</td>
echo '<p>Hello ' . $me->name . '</p><p><a href="/logout">Logout</a></p>'; } else { $state = null; $url = client()->dispatcher->authorizationUrl($state); $_SESSION['state'] = $state; echo '<p><a href="' . $url . '">'; echo '<img src="https://github.com/Asana/oauth-examples/raw/master/public/asana-oauth-button-blue.png?raw=true">'; echo '</a></p>'; } } else { if ('/logout' == $_SERVER['SCRIPT_NAME']) { unset($_SESSION['token']); header('Location: /'); } else { if ('/auth/asana/callback' == $_SERVER['SCRIPT_NAME']) { if ($_SESSION['state'] == $_GET['state']) { $_SESSION['token'] = client()->dispatcher->fetchToken($_GET['code']); header('Location: /'); } else { echo "State doesn't match"; } } else { http_response_code(404); echo 'Not found'; } } } } catch (Exception $e) { http_response_code(500); echo "Internal Error\n" . $e; }
chdir(__DIR__); define("XML_FILE", __DIR__ . "/100m.xml"); define("MAX_SIZE_HOUR", 32 * 1024 * 1024); // max 32mb per uur require 'vendor/autoload.php'; require 'functions.php'; require 'Job.php'; use Aws\Glacier\GlacierClient; define("VAULT", "Backups_Server"); $start_time = new \DateTime(); parse_xml(XML_FILE); $running_jobs = get_running_jobs(); $most_recent_job = null; // download running jobs foreach ($running_jobs as $job) { $oResult = client()->describeJob(array('accountId' => '-', 'vaultName' => VAULT, 'jobId' => $job->get("jobId"))); if ($oResult->get('StatusCode') == "Succeeded") { downloadJob($job); } elseif ($oResult->get('StatusCode') == "Failed") { $job->set('running', 0); } } // controleer of er een job gestart is in het afgelopen uur foreach (parts() as $job) { if (!$job->get('start_time') instanceof \DateTime) { continue; } if (is_null($most_recent_job)) { $most_recent_job = $job; continue; }
*/ $beehive->setConnectCallback(function (Beehive\Client $client) use(&$clients) { // Remember the clients when they connect. Since $clients is passed by // reference, any changes will affect the $clients variable outside the // scope of this function. $clients[] = $client; clientAdded($client); clientList($client); }); $beehive->setReadCallback(function (Beehive\Client $sender, $input) use(&$clients) { // For any valid json request sent to the server, relay a message to all // connected clients with the sender and the message. $incoming = json_decode($input); if ($incoming) { $message = $incoming->message; client($sender, $message); } }); $beehive->setDisconnectCallback(function (Beehive\Client $client) use(&$clients) { // Remove disconnected clients from the $clients array. $i = array_search($client, $clients); unset($clients[$i]); clientRemoved($client); }); /** * Tell beehive to start listening. */ $beehive->listen(); function clientList(Beehive\Client $client) { global $clients;
$start = 0; } $req = mysql_query("select num,id_clt,date,type from " . $prefixe_table . "factures order by date desc, num desc limit {$start},{$nb_fact}"); while ($ligne = mysql_fetch_array($req)) { $num = $ligne["num"]; $id_clt = $ligne["id_clt"]; $date = $ligne["date"]; $type = $ligne["type"]; $date = ereg_replace('^([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})$', '\\3/\\2/\\1', $date); if ($type == "f") { $type = "Facture"; } elseif ($type == "d") { $type = "Devis"; } $num_d = sprintf("%08s", $num); $client = client($id_clt); echo "<tr>\r\n <td bgcolor=\"#ffffff\" align=\"center\">#{$num_d}</td>\r\n <td bgcolor=\"#ffffff\" align=\"center\">{$client}</td>\r\n <td bgcolor=\"#ffffff\" align=\"center\">{$date}</td>\r\n <td bgcolor=\"#ffffff\" align=\"center\">{$type}</td>\r\n <td bgcolor=\"#ffffff\" align=\"center\" width=\"10%\"><a href=\"modifier.php?id_facture={$num}\">Modifier</a></td>\r\n <td bgcolor=\"#ffffff\" align=\"center\" width=\"10%\"><a href=\"#null\" onclick=\"javascript:if(confirm('Etes-vous sûr de vouloir supprimer cette facture ?')) document.location.replace('index.php?action=delete&id_fact={$num}');\">Supprimer</a></td>\r\n <td bgcolor=\"#ffffff\" align=\"center\" width=\"10%\"><a href=\"generer.php?id_facture={$num}\">Générer</a></td>\r\n</tr>"; } ?> </table> <br> <center>[ <?php $result = mysql_query("select count(*) from " . $prefixe_table . "factures"); $row = mysql_fetch_row($result); if ($start == "0") { echo "<b>1</b> "; } else { echo "<a href=\"index.php?start=0\">1</a> "; }