function parse_options() { $options = getopt("h", array("clients-count:", "log-junit", "verbose", "build")); if (isset($options['h'])) { print_info(); die; } if (isset($options['build'])) { $options['verbose'] = true; $options['log-junit'] = true; } if (isset($options['clients-count'])) { define('SELENIUM_CLIENTS_COUNT', $options['clients-count']); } if (isset($options['log-junit'])) { TestRunner::$log_xml = true; shell_exec("rm /tmp/TEST*.xml"); } if (isset($options['verbose'])) { TestRunner::$verbose = true; } if (!defined('SELENIUM_CLIENTS_COUNT')) { define('SELENIUM_CLIENTS_COUNT', 5); } $runner = new testRunner(); $runner->start(SELENIUM_CLIENTS_COUNT); }
function db_connect($dbname=DBNAME, $dbport=DBPORT) { print_info("Attempting to connect to " . DBNAME . "@".DBHOST); $mysqli = new mysqli( DBHOST, DBUSER, DBPASS, $dbname); if( $mysqli->connect_error ) print_error("Was unable to connect to your db defined in config/settings.php. Double-check your settings!"); return $mysqli; }
function gen_liste() { global $dbh, $msg, $deflt_docs_location, $begin_result_liste, $end_result_liste; if (!$deflt_docs_location) { return ""; } $sql = "SELECT expl_id, expl_cb FROM exemplaires where expl_retloc='" . $deflt_docs_location . "' "; $req = pmb_mysql_query($sql) or die($msg["err_sql"] . "<br />" . $sql . "<br />" . pmb_mysql_error()); while ($liste = pmb_mysql_fetch_object($req)) { if ($stuff = get_expl_info($liste->expl_id)) { $stuff = check_pret($stuff); $aff_final .= print_info($stuff, 0, 0, 0); } } if ($aff_final) { return "<h3>" . $msg['expl_todo_liste'] . "</h3>" . $begin_result_liste . $aff_final . $end_result_liste; } else { return $msg['resa_liste_docranger_nodoc']; } }
function aff_cart_unique_object($item, $caddie_type, $url_base = "./catalog.php?categ=caddie&sub=gestion&quoi=panier&idcaddie=0") { global $msg; global $dbh; global $begin_result_liste; global $end_result_list; global $page, $nbr_lignes, $nb_per_page, $nb_per_page_search; // nombre de références par pages if ($nb_per_page_search != "") { $nb_per_page = $nb_per_page_search; } else { $nb_per_page = 10; } $cb_display = "\n\t\t\t<div id=\"el!!id!!Parent\" class=\"notice-parent\">\n\t \t\t<span class=\"notice-heada\">!!heada!!</span>\n\t \t\t<br />\n\t\t\t</div>\n\t\t\t"; $liste[] = array('object_id' => $item, 'content' => "", 'blob_type' => ""); $aff_retour = ""; //Calcul des variables pour la suppression d'items $modulo = $nbr_lignes % $nb_per_page; if ($modulo == 1) { $page_suppr = !$page ? 1 : $page - 1; } else { $page_suppr = $page; } $nb_after_suppr = $nbr_lignes ? $nbr_lignes - 1 : 0; if (!sizeof($liste) || !is_array($liste)) { return $msg[399]; } else { // en fonction du type de caddie on affiche ce qu'il faut if ($caddie_type == "NOTI") { // boucle de parcours des notices trouvées while (list($cle, $object) = each($liste)) { if ($object[content] == "") { // affichage de la liste des notices sous la forme 'expandable' $requete = "SELECT * FROM notices WHERE notice_id={$object['object_id']} LIMIT 1"; $fetch = pmb_mysql_query($requete); if (pmb_mysql_num_rows($fetch)) { $notice = pmb_mysql_fetch_object($fetch); if ($notice->niveau_biblio == 'b') { // notice de bulletin $rqtbull = "select bulletin_id from bulletins where num_notice=" . $notice->notice_id; $fetchbull = pmb_mysql_query($rqtbull); $bull = pmb_mysql_fetch_object($fetchbull); $link = "./catalog.php?categ=serials&sub=bulletinage&action=view&bul_id=" . $bull->bulletin_id; // pas affichés pour l'instant: $link_expl = ''; $link_explnum = ''; $display = new mono_display($notice, 6, $link, 1, $link_expl, $lien_suppr_cart, $link_explnum); $aff_retour .= $display->result; } elseif ($notice->niveau_biblio != 's' && $notice->niveau_biblio != 'a') { // notice de monographie $link = './catalog.php?categ=isbd&id=!!id!!'; $link_expl = './catalog.php?categ=edit_expl&id=!!notice_id!!&cb=!!expl_cb!!&expl_id=!!expl_id!!'; $link_explnum = './catalog.php?categ=edit_explnum&id=!!notice_id!!&explnum_id=!!explnum_id!!'; $lien_suppr_cart = "<a href='{$url_base}&action=del_item&object_type=NOTI&item={$notice->notice_id}&page={$page_suppr}&nbr_lignes={$nb_after_suppr}&nb_per_page={$nb_per_page}'><img src='./images/basket_empty_20x20.gif' alt='basket' title=\"" . $msg[caddie_icone_suppr_elt] . "\" /></a>"; $display = new mono_display($notice, 6, $link, 1, $link_expl, $lien_suppr_cart, $link_explnum); $aff_retour .= $display->result; } else { // on a affaire à un périodique // préparation des liens pour lui $link_serial = './catalog.php?categ=serials&sub=view&serial_id=!!id!!'; $link_analysis = './catalog.php?categ=serials&sub=bulletinage&action=view&bul_id=!!bul_id!!&art_to_show=!!id!!'; $link_bulletin = './catalog.php?categ=serials&sub=bulletinage&action=view&bul_id=!!id!!'; $lien_suppr_cart = "<a href='{$url_base}&action=del_item&object_type=NOTI&item={$notice->notice_id}&page={$page_suppr}&nbr_lignes={$nb_after_suppr}&nb_per_page={$nb_per_page}'><img src='./images/basket_empty_20x20.gif' alt='basket' title=\"" . $msg[caddie_icone_suppr_elt] . "\" /></a>"; $link_explnum = "./catalog.php?categ=serials&sub=analysis&action=explnum_form&bul_id=!!bul_id!!&analysis_id=!!analysis_id!!&explnum_id=!!explnum_id!!"; $serial = new serial_display($notice, 6, $link_serial, $link_analysis, $link_bulletin, $lien_suppr_cart, $link_explnum, 0); $aff_retour .= $serial->result; } } } else { $cb_display = "\n\t\t\t\t\t\t<div id=\"el!!id!!Parent\" class=\"notice-parent\">\n\t\t\t\t \t\t<span class=\"notice-heada\"><strong>Code-barre : {$object['content']} : {$msg[395]}</strong></span>\n\t\t\t\t \t\t<br />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t"; $aff_retour .= $cb_display; } } // fin de liste print $end_result_list; } // fin si NOTI // si EXPL if ($caddie_type == "EXPL") { // boucle de parcours des exemplaires trouvés // inclusion du javascript de gestion des listes dépliables // début de liste while (list($cle, $expl) = each($liste)) { if (!$expl[content]) { if ($stuff = get_expl_info($expl[object_id])) { $stuff->lien_suppr_cart = "<a href='{$url_base}&action=del_item&object_type=EXPL&item={$expl}&page={$page_suppr}&nbr_lignes={$nb_after_suppr}&nb_per_page={$nb_per_page}'><img src='./images/basket_empty_20x20.gif' alt='basket' title=\"" . $msg[caddie_icone_suppr_elt] . "\" /></a>"; $stuff = check_pret($stuff); $aff_retour .= print_info($stuff, 0, 1); } else { $aff_retour .= "<strong>ID : {$expl['object_id']} : {$msg[395]}</strong>"; } } else { $cb_display = "\n\t\t\t\t\t\t<div id=\"el!!id!!Parent\" class=\"notice-parent\">\n\t\t\t\t \t\t<span class=\"notice-heada\"><strong>Code-barre : {$expl['content']} : {$msg[395]}</strong></span>\n\t\t\t\t \t\t<br />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t"; $aff_retour .= $cb_display; } } // fin de liste print $end_result_list; } // fin si EXPL if ($caddie_type == "BULL") { // boucle de parcours des bulletins trouvés // inclusion du javascript de gestion des listes dépliables // début de liste while (list($cle, $expl) = each($liste)) { global $url_base_suppr_cart; $url_base_suppr_cart = $url_base; if ($bull_aff = show_bulletinage_info($expl["object_id"], 0, 1)) { $aff_retour .= $bull_aff; } else { $aff_retour .= "<strong>{$form_cb_expl} : {$msg[395]}</strong><br />"; } } // fin de liste print $end_result_list; } // fin si BULL } return $aff_retour; }
} else { $message_ajout_expl = "<strong>{$form_cb_expl} : {$msg['395']}</strong>"; $expl_ajout_ok = 0; $alert_sound_list[] = "critique"; } } } $res_ajout = $myCart->pointe_item($item, "EXPL", $form_cb_expl, "EXPL_CB"); print pmb_bidi(aff_cart_nb_items($myCart)); // form de saisie cb exemplaire print get_cb_expl($msg["caddie_pointe_expl"], $msg[661], "./catalog.php?categ=caddie&sub=pointage&moyen=douchette&action=pointe_item&idcaddie={$idcaddie}", 1); if ($expl_ajout_ok) { if ($res_ajout == CADDIE_ITEM_OK) { print "<hr /><div class='row'><span class='erreur'>" . $msg["caddie_" . $myCart->type . "_pointe"] . "</span></div><hr />"; print $begin_result_expl_liste_unique; print pmb_bidi(print_info($stuff, 0, 1)); } if ($res_ajout == CADDIE_ITEM_NULL) { print "<hr /><div class='row'><span class='erreur'>{$msg['caddie_item_null']}</span></div><hr />"; $alert_sound_list[] = "critique"; } if ($res_ajout == CADDIE_ITEM_IMPOSSIBLE_BULLETIN) { print "<hr /><div class='row'><span class='erreur'>{$msg['caddie_pointe_item_impossible_bulletin']}</span></div><hr />"; $alert_sound_list[] = "critique"; } if ($res_ajout == CADDIE_ITEM_INEXISTANT) { print "<hr /><div class='row'><span class='erreur'>{$form_cb_expl} : {$msg['caddie_pointe_inconnu_panier']}</span></div><hr />"; $alert_sound_list[] = "critique"; } } else { print "<hr /><div class='row'><span class='erreur'>{$message_ajout_expl}</span></div><hr />";
$prefix_url_image = "./"; if (!$back_to_visu) { get_cb_expl($msg[375], $msg[661], $msg[circ_tit_form_cb_expl], './circ.php?categ=visu_ex', 1); if ($form_cb_expl) { $query = "select expl_id, expl_notice, pret_flag, pret_idempr from docs_statut, exemplaires left join pret on pret_idexpl=expl_id where expl_cb='{$form_cb_expl}' and expl_statut=idstatut "; $result = pmb_mysql_query($query, $dbh); if (!pmb_mysql_num_rows($result)) { // exemplaire inconnu $alert_sound_list[] = "critique"; print "<strong>{$form_cb_expl} : {$msg[367]}</strong>"; } else { $expl_lu = pmb_mysql_fetch_object($result); if ($stuff = get_expl_info($expl_lu->expl_id, 1)) { $stuff = check_pret($stuff); // print $begin_result_liste; print print_info($stuff, 1, 1); // pour affichage de l'image de couverture if ($pmb_book_pics_show == '1' && ($pmb_book_pics_url && $stuff->code || $stuff->thumbnail_url)) { print "<script type='text/javascript'>\n\t\t\t\t\t\t<!--\n\t\t\t\t\t\tvar img = document.getElementById('PMBimagecover" . $expl_lu->expl_notice . "');\n\t\t\t\t\t\tisbn=img.getAttribute('isbn');\n\t\t\t\t\t\turl_image=img.getAttribute('url_image');\n\t\t\t\t\t\tif (isbn) {\n\t\t\t\t\t\t\tif (img.src.substring(img.src.length-8,img.src.length)=='vide.png') {\n\t\t\t\t\t\t\t\timg.src=url_image.replace(/!!noticecode!!/,isbn);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t//-->\n\t\t\t\t\t\t</script>\n\t\t\t\t\t\t"; } } else { // exemplaire inconnu $alert_sound_list[] = "critique"; print "<strong>{$form_cb_expl} : {$msg[367]}</strong>"; } } } } else { //droits d'acces lecture notice $acces_j = ''; if ($gestion_acces_active == 1 && $gestion_acces_user_notice == 1) {
echo '</tr>'; } echo '</tbody></table>'; } else { echo 'Ukjent.'; } } } else { if ($index_a[0] == "info") { //Book if (isset($index_a[1]) && isset($index_a[2])) { require 'info.class.php'; $information = new Info($index_a[1], $index_a[2]); $info = $information->getInfo(); if ($info != false) { print_info($info); } else { echo $info->error; } } else { echo "Mangler data :/"; } } else { if ($index_a[0] == "create") { if (isset($index_a[1])) { $fields = array('book' => array('verifyer' => 'title'), 'user' => array('verifyer' => 'firstname'), 'shelf' => array('verifyer' => 'name')); if (isset($fields[$index_a[1]])) { if (isset($_POST[$fields[$index_a[1]]['verifyer']])) { //Fix the birth $_POST['birth'] = $_POST['birth_year'] . "-" . $_POST['birth_month'] . "-" . $_POST['birth_day'] . " 00:00:00"; require 'book_and_user_functions.class.php';
?> ', '<?php echo $token; ?> ');" title="®Back_to_album®">(<?php echo suffix_remove($album); ?> ) <?php echo get_album_title($album); ?> </a> <?php } ?> <div class="right-arrow"></div><?php print_info($asset_meta['title']); ?> </div> <div id="video_player"> <!-- #main_video : HTML5 video player. There is no selected source by default. Video src is loaded when the user clicks on a link in the side pane. The video player is only displayed when an asset is selected. If the current view is the home page or album page, the video player is replaced by a simple image. --> <div id="video_shortcuts"> <div class="shortcuts"> <ul> <li><span class="key space"></span><span>®key_space®</span></li>
?> _1" style="display:none"> <p><span class="infosAvance">®Filesize_HD® :</span> <?php print_info($filesize_cam['HD'], ' ®Megabyte_unit®'); ?> </p> <p><span class="infosAvance">®Filesize_SD® :</span> <?php print_info($filesize_cam['SD'], ' ®Megabyte_unit®'); ?> </p> <p><span class="infosAvance">®Dimensions_HD® :</span> <?php print_info($dimensions_cam['HD']); ?> </p> <p><span class="infosAvance">®Dimensions_SD® :</span> <?php print_info($dimensions_cam['SD']); ?> </p> <!-- <p><span class="infosAvance">®View_count® :</span> <?php echo $view_count_cam; ?> </p> --> </div> <!-- Links to media --> <span class="BoutonPublication"> <a href="javascript:visibilite('Publication_<?php echo $asset; ?> _1');">®Publication®</a></span> <!--div class="Publication" id="Publication_<?php
function testNumberGenerator(PhpgwContext $c) { $numberGeneratorInstance = get_external_generator(); ############################################################### $logic_exception_if_no_active_transaction = false; try { $numberGeneratorInstance->increment(); } catch (LogicException $e) { $logic_exception_if_no_active_transaction = true; } assert('$logic_exception_if_no_active_transaction') and pass_test('logic_exception_if_no_active_transaction'); ############################################################# print_info("Pre Transaction"); $c->getDb()->transaction_begin(); //Begin transaction $no_logic_exception_if_active_transaction = false; try { $numberGeneratorInstance->increment(); $currentValue = $numberGeneratorInstance->get_current(); $numberGeneratorInstance->increment(); $numberGeneratorInstance->increment(); $no_logic_exception_if_active_transaction = true; } catch (LogicException $e) { } $c->getDb()->transaction_abort(); assert($no_logic_exception_if_active_transaction) and pass_test("no_logic_exception_if_active_transaction"); print_info("Post Transaction"); ############################################################# $previousNumberGeneratorInstance = $numberGeneratorInstance; $numberGeneratorInstance = get_external_generator(); $new_generator_is_created_post_transaction = $previousNumberGeneratorInstance != $numberGeneratorInstance; assert('$new_generator_is_created_post_transaction') and pass_test("new_generator_is_created_post_transaction"); ############################################################# print_info("Start Transaction"); $c->getDb()->transaction_begin(); //Begin transaction ############################################################# $cannotGetCurrentWithoutLock = false; try { $numberGeneratorInstance->get_current(); } catch (Exception $e) { print_info($e->getMessage()); $cannotGetCurrentWithoutLock = true; } assert('$cannotGetCurrentWithoutLock') and pass_test("Cannot get current without lock"); ############################################################## $canGetCurrentWithLock = false; $numberGeneratorInstance->increment(); //Locked print_info("Locked (->increment)"); $previousValue = $numberGeneratorInstance->get_current(); $numberGeneratorInstance->increment(); $canGetCurrentWithLock = true; assert($canGetCurrentWithLock) and pass_test("Able to get_current with lock"); ############################################################ assert('$numberGeneratorInstance->get_current() === $previousValue+1') and pass_test("Incremented value by one"); ############################################################ $c->getDb()->transaction_abort(); print_info("Abort transaction"); ############################################################ $unableToUseGeneratorPostTransaction = false; try { $numberGeneratorInstance->get_current(); } catch (LogicException $e) { $unableToUseGeneratorPostTransaction = true; } assert($unableToUseGeneratorPostTransaction) and pass_test("Unable to use generator post transaction"); print_info("Sleep test"); $c->getDb()->transaction_begin(); //Begin transaction $numberGeneratorInstance = get_external_generator(); sleep(4); for ($i = 0; $i < 10; $i++) { print_info($numberGeneratorInstance->increment()->get_current()); } $c->getDb()->transaction_abort(); sleep(4); print_info("Sleep test 2"); $c->getDb()->transaction_begin(); //Begin transaction $numberGeneratorInstance = get_external_generator(); sleep(4); for ($i = 0; $i < 10; $i++) { print_info($numberGeneratorInstance->increment()->get_current()); } $c->getDb()->transaction_commit(); sleep(4); }
<?php } if ($asset_meta['record_type'] == 'camslide' || $asset_meta['record_type'] == 'slide') { ?> <a class="button <?php echo $asset_meta['record_type'] == 'camslide' ? 'right-side' : ''; ?> " href="javascript:share_popup(current_album, current_asset, time, 'slide', 'share_link')" onclick="server_trace(new Array('3', 'slide_download_open', current_album, current_asset, duration, time, type, quality));"><?php echo $asset_meta['record_type'] == 'camslide' ? '®The_slides®' : '®Download_slide®'; ?> </a> <?php } } ?> </div> <?php if (isset($asset_meta['description']) && !empty($asset_meta['description'])) { ?> <div class="asset_details"> <b class="green-title">®Description®:</b> <?php print_info($asset_meta['description']); ?> </div> <?php } ?> </div>
function resa_ranger_list() { global $dbh; global $msg; global $begin_result_liste; global $end_result_liste; $sql = "SELECT resa_cb, expl_id from resa_ranger left join exemplaires on resa_cb=expl_cb "; $res = mysql_query($sql, $dbh); while ($ranger = mysql_fetch_object($res)) { if ($ranger->expl_id) { if ($stuff = get_expl_info($ranger->expl_id)) { $stuff = check_pret($stuff); $aff_final .= print_info($stuff, 0, 0, 0); } else { $aff_final .= "<strong>{$form_cb_expl} : {$msg[395]}</strong>"; } } } if ($aff_final) { return $begin_result_liste . $aff_final . $end_result_liste; } else { return $msg['resa_liste_docranger_nodoc']; } }
if ($thread['best_comment'] != NULL) { $best_comment = $thread['best_comment']; ?> <div class="cat"> <label class="thread-cat-title"><?php echo mb_strtoupper('®Best_answer®', 'UTF-8'); ?> </label> </div> <div class="best_reply"> <div id="best-comment-message" onclick="javascript:scrollTo('comment_<?php echo $best_comment['id']; ?> ');" style="cursor: pointer;"> <?php echo print_info(htmlspecialchars_decode($best_comment['message'], ENT_QUOTES), '', false); ?> </div> <label class="pull-left badge-score"><?php echo sprintf("%02s", $best_comment['score']); ?> </label> <div class="trophy-best-comment pull-left"></div> </div> <br /> <?php } ?> <div class="cat"> <label class="thread-cat-title"><?php echo mb_strtoupper('®Other_answers®', 'UTF-8');
<li> <a class="item" id="asset-<?php echo $asset['name']; ?> " href="javascript:show_asset_details('<?php echo $album; ?> ', '<?php echo $asset['name']; ?> ', '<?php echo $asset['token']; ?> ');"> <b><?php print_info(substr(get_user_friendly_date($asset['metadata']['record_date'], '/', false, get_lang(), false), 0, 10)); ?> </b> <div style="display:inline-block; width: 16px; height:1px;"></div> <?php echo $asset['metadata']['title']; ?> <span class="<?php if (acl_show_notifications() && !acl_is_watched($album, $asset['metadata']['record_date'])) { echo 'new'; } ?> " title="®New_video®"></span> </a> </li> <?php
</a> <span class="more"><a class="more-button small orange" onclick="toggle_detail('<?php echo $index; ?> ', 'toc', $(this));"></a></span> <div class="bookmark_detail" id="toc_detail_<?php echo $index; ?> "> <div class="bookmark_info" id="toc_info_<?php echo $index; ?> "> <div class="orange-title">®Description® :</div> <?php print_info($bookmark['description']); ?> <div class="orange-title" style="margin-top: 6px;">®Keywords® : </div> <?php print_search($bookmark['keywords']); ?> </div> <div class="edit_bookmark_form" id="edit_toc_<?php echo $index; ?> "> <input type="hidden" name="album" id="toc_album_<?php echo $index; ?> " value="<?php
<?php function print_info($info) { echo $info['algo'] . "\n"; echo $info['algoName'] . "\n"; if (isset($info['options']['cost'])) { echo $info['options']['cost'] . "\n"; } echo "====\n"; } print_info(password_get_info('foo')); print_info(password_get_info('$2y$')); print_info(password_get_info('$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi')); print_info(password_get_info('$2y$10$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi'));
echo "\t{$size} kB of {$type} at {$mount}\n"; } echo "\n"; } function print_info($hostname, $ip, $dmi) { echo "Host info:\n"; echo "\t{$hostname} [IP: {$ip}]\n"; $psk = "/proc/sys/kernel"; if (file_exists("{$psk}/ostype")) { $type = trim(file_get_contents("{$psk}/ostype")); $rel = trim(file_get_contents("{$psk}/osrelease")); $ver = trim(file_get_contents("{$psk}/version")); echo "\t{$type} {$rel} {$ver}\n"; } if (isset($dmi["product_name"])) { $product = $dmi["product_name"]; $vendor = $dmi["vendor"]; echo "\t{$product} by {$vendor}\n"; } echo "\n"; } $hostname = get_hostname(); $ip = get_ip($hostname); $dmi = parse_dmi(); print_info($hostname, $ip, $dmi); $cpu = parse_cpuinfo(); print_cpu($cpu, $dmi); $mem = parse_meminfo(); $swap = parse_swaps(); print_memory($mem, $swap);
if (!$form_cb_expl) { break; } $msg_a_ranger = "<br /><div class='erreur'>"; $aff_a_ranger .= "<hr />"; // récupérer l'exemplaire $query = "select expl_id from exemplaires where expl_cb='{$form_cb_expl}'"; $result = pmb_mysql_query($query, $dbh); if (!pmb_mysql_num_rows($result)) { // exemplaire inconnu $aff_a_ranger .= "<strong>{$form_cb_expl} : {$msg[367]}</strong><br />"; } else { $expl_lu = pmb_mysql_fetch_object($result); if ($stuff = get_expl_info($expl_lu->expl_id)) { $stuff = check_pret($stuff); $aff_a_ranger .= print_info($stuff, 1, 0, 0) . "<br />"; } else { $aff_a_ranger .= "<strong>{$form_cb_expl} : {$msg[395]}</strong><br />"; } } $rqt = "delete from resa_ranger where resa_cb='" . $form_cb_expl . "' "; $res = pmb_mysql_query($rqt, $dbh); if (pmb_mysql_affected_rows()) { $msg_a_ranger .= $msg[resa_docrange]; } else { $msg_a_ranger .= $msg[resa_docrange_non]; } $msg_a_ranger = str_replace('!!cb!!', $form_cb_expl, $msg_a_ranger); $msg_a_ranger .= "</div>"; break; }
<b>®Description®: </b><?php print_info($personal_bookmark['description']); ?> <br/> <b>®Keywords®: </b><?php print_info($personal_bookmark['keywords']); ?> </div> </div></a> </div> <?php } else { ?> <div style="display: inline-block; width: 457px; padding-left: 8px;"> <span style="padding-left: 0px;"><b><?php print_info(substr(get_user_friendly_date($bookmark['asset'], '/', false, get_lang(), false), 0, 10)); ?> </b></span> <?php echo get_asset_title($bookmark['album'], $bookmark['asset']); ?> <div class="right-arrow"></div> <?php print_bookmark_title($bookmark['title']); ?> </div> <?php } ?> </li>
<td> <table class="box" style="border-style: none;"> <?php $module_info = $system->get_ftpmodules(); if (sizeof($module_info) != 0) { echo '<tr><td colspan="3" class="box-subheadspace" style="line-height: 10px;"> </td></tr>'; echo '<tr><td colspan="3" class="box-subheadline">' . $GLOBALS['language']['status']['pro_compiled_in'] . '</td></tr>'; echo '<tr>'; echo ' <td width="140" class="box-pl" align="center">' . $GLOBALS['language']['status']['pro_module_field'] . '</td>'; echo ' <td width="*" colspan="2" class="box-pl" align="center">' . $GLOBALS['language']['status']['pro_module_desc'] . '</td>'; echo '</tr>'; $result = array(); for ($i = 0; $i < sizeof($module_info); $i++) { $result[$module_info[$i]] = describe_module($module_info[$i]); } print_info($result); } ?> </table> </td> </tr> </table> <?php function describe_module($name) { global $language; if (isset($language['status']['ftp_module'][$name])) { return $language['status']['ftp_module'][$name]; } else { return ' '; }
function aff_cart_notices($liste, $caddie_type, $idcaddie = 0) { global $msg; global $dbh; global $begin_result_liste; global $end_result_liste; global $page, $nbr_lignes, $nb_per_page; //Calcul des variables pour la suppression d'items if ($nb_per_page) { $modulo = $nbr_lignes % $nb_per_page; if ($modulo == 1) { $page_suppr = !$page ? 1 : $page - 1; } else { $page_suppr = $page; } $nb_after_suppr = $nbr_lignes ? $nbr_lignes - 1 : 0; } if (!sizeof($liste) || !is_array($liste)) { print $msg[399]; return; } else { // en fonction du type de caddie on affiche ce qu'il faut if ($caddie_type == "NOTI") { // boucle de parcours des notices trouvées // inclusion du javascript de gestion des listes dépliables // début de liste print $begin_result_liste; while (list($cle, $notice) = each($liste)) { // affichage de la liste des notices sous la forme 'expandable' $requete = "SELECT * FROM notices WHERE notice_id={$notice} LIMIT 1"; $fetch = mysql_query($requete, $dbh); if (mysql_num_rows($fetch)) { $notice = mysql_fetch_object($fetch); if ($notice->niveau_biblio != 's' && $notice->niveau_biblio != 'a') { // notice de monographie $link = './catalog.php?categ=isbd&id=!!id!!'; $link_expl = './catalog.php?categ=edit_expl&id=!!notice_id!!&cb=!!expl_cb!!&expl_id=!!expl_id!!'; $link_explnum = './catalog.php?categ=edit_explnum&id=!!notice_id!!&explnum_id=!!explnum_id!!'; $lien_suppr_cart = "<a href='./catalog.php?categ=search&mode=3&action=del_item&object_type=NOTI&idcaddie={$idcaddie}&item={$notice->notice_id}&page={$page_suppr}&nbr_lignes={$nb_after_suppr}&nb_per_page={$nb_per_page}'><img src='./images/basket_empty_20x20.gif' alt='basket' title='" . $msg[caddie_icone_suppr_elt] . "' /></a>"; $display = new mono_display($notice, 6, $link, 1, $link_expl, $lien_suppr_cart, $link_explnum, 1, 0, 1, 1); print pmb_bidi($display->result); } else { // on a affaire à un périodique // préparation des liens pour lui $link_serial = './catalog.php?categ=serials&sub=view&serial_id=!!id!!'; $link_analysis = './catalog.php?categ=serials&sub=bulletinage&action=view&bul_id=!!bul_id!!&art_to_show=!!id!!'; $link_bulletin = './catalog.php?categ=serials&sub=bulletinage&action=view&bul_id=!!id!!'; $lien_suppr_cart = "<a href='./catalog.php?categ=search&mode=3&action=del_item&object_type=NOTI&idcaddie={$idcaddie}&item={$notice->notice_id}&page={$page_suppr}&nbr_lignes={$nb_after_suppr}&nb_per_page={$nb_per_page}'><img src='./images/basket_empty_20x20.gif' alt='basket' title='" . $msg[caddie_icone_suppr_elt] . "' /></a>"; // function serial_display ($id, $level='1', $action_serial='', $action_analysis='', $action_bulletin='', $lien_suppr_cart="", $lien_explnum="", $bouton_explnum=1,$print=0,$show_explnum=1, $show_statut=0, $show_opac_hidden_fields=true, $draggable=0 ) { $serial = new serial_display($notice, 6, $link_serial, $link_analysis, $link_bulletin, $lien_suppr_cart, "", 1, 0, 1, 1, true, 1); print pmb_bidi($serial->result); } } } // fin de liste print $end_result_liste; } // fin si NOTI // si EXPL if ($caddie_type == "EXPL") { // boucle de parcours des exemplaires trouvés // inclusion du javascript de gestion des listes dépliables // début de liste print $begin_result_liste; while (list($cle, $expl) = each($liste)) { if ($stuff = get_expl_info($expl)) { $stuff->lien_suppr_cart = "<a href='./catalog.php?categ=search&mode=3&action=del_item&object_type=EXPL&idcaddie={$idcaddie}&item={$expl}&page={$page_suppr}&nbr_lignes={$nb_after_suppr}&nb_per_page={$nb_per_page}'><img src='./images/basket_empty_20x20.gif' alt='basket' title='" . $msg[caddie_icone_suppr_elt] . "' /></a>"; $stuff = check_pret($stuff); print pmb_bidi(print_info($stuff, 0, 1)); } else { print "<strong>{$form_cb_expl} : {$msg[395]}</strong>"; } } // fin de liste print $end_result_liste; } // fin si EXPL if ($caddie_type == "BULL") { // boucle de parcours des bulletins trouvés // inclusion du javascript de gestion des listes dépliables // début de liste print $begin_result_liste; while (list($cle, $expl) = each($liste)) { if ($bull_aff = show_bulletinage_info($expl)) { $javascript_template = "\n\t\t\t\t\t\t<div id=\"el!!id!!Parent\" class=\"notice-parent\">\n \t\t\t\t\t\t<img src=\"./images/plus.gif\" class=\"img_plus\" name=\"imEx\" id=\"el!!id!!Img\" title=\"" . $msg['admin_param_detail'] . "\" border=\"0\" onClick=\"expandBase('el!!id!!', true); return false;\" hspace=\"3\">\n \t\t\t\t\t\t<span class=\"notice-heada\">!!heada!!</span>\n \t\t\t\t\t\t<br />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div id=\"el!!id!!Child\" class=\"notice-child\" style=\"margin-bottom:6px;display:none;\">\n \t\t\t\t \t\t!!CONTENU!!\n \t\t\t\t\t\t</div>"; $lien_suppr_cart = "<a href='./catalog.php?categ=search&mode=3&action=del_item&object_type=EXPL&idcaddie={$idcaddie}&item={$expl}&page={$page_suppr}&nbr_lignes={$nb_after_suppr}&nb_per_page={$nb_per_page}'><img src='./images/basket_empty_20x20.gif' alt='basket' title='" . $msg[caddie_icone_suppr_elt] . "' /></a>"; $aff = str_replace('!!id!!', $expl, $javascript_template); $aff = str_replace('!!unique!!', md5(microtime()), $aff); $aff = str_replace('!!heada!!', $lien_suppr_cart . $bull_aff->header, $aff); $aff = str_replace('!!CONTENU!!', $bull_aff->display, $aff); print pmb_bidi($aff); } else { print "<strong>{$form_cb_expl} : {$msg[395]}</strong>"; } } // fin de liste print $end_result_liste; } // fin si BULL } }
?> ) <?php echo get_album_title($album); ?> </li> <?php } $token = acl_token_get($album); $token = $token['token']; foreach ($album_threads as $asset => $asset_threads) { ?> <?php if ($asset_ref != $asset) { ?> <li class="asset_result"><div class="right-arrow"></div><?php print_info(substr(get_user_friendly_date($asset, '/', false, get_lang(), false), 0, 10)); ?> <?php echo get_asset_title($album, $asset); ?> </li> <?php } foreach ($asset_threads as $thread_id => $thread) { ?> <li id="result_thread_<?php echo $thread_id; ?> " class="result">
function resa_ranger_list() { global $base_path, $dbh; global $msg; global $current_module; global $begin_result_liste; global $end_result_liste; global $deflt_docs_location; global $pmb_lecteurs_localises; global $f_loc; $aff_final = ""; if ($pmb_lecteurs_localises) { if ($f_loc == "") { $f_loc = $deflt_docs_location; } if ($f_loc) { $sql_expl_loc = " where expl_location='" . $f_loc . "' "; } } if ($pmb_lecteurs_localises) { //la liste de sélection de la localisation $aff_final .= "<form class='form-{$current_module}' name='check_docranger' action='" . $base_path . "/circ.php?categ=listeresa&sub=docranger' method='post'>"; $aff_final .= "<br />" . $msg["transferts_circ_resa_lib_localisation"]; $aff_final .= "<select name='f_loc' onchange='document.check_docranger.submit();'>"; $res = pmb_mysql_query("SELECT idlocation, location_libelle FROM docs_location order by location_libelle"); $aff_final .= "<option value='0'>" . $msg["all_location"] . "</option>"; //on parcours la liste des options while ($value = pmb_mysql_fetch_array($res)) { //debut de l'option $aff_final .= "<option value='" . $value[0] . "'"; if ($value[0] == $f_loc) { $aff_final .= " selected"; } //c'est l'option par défaut $aff_final .= ">" . $value[1] . "</option>"; } $aff_final .= "</select></form>"; } $sql = "SELECT resa_cb, expl_id from resa_ranger left join exemplaires on resa_cb=expl_cb " . $sql_expl_loc; $res = pmb_mysql_query($sql, $dbh); while ($ranger = pmb_mysql_fetch_object($res)) { if ($ranger->expl_id) { if ($stuff = get_expl_info($ranger->expl_id)) { $stuff = check_pret($stuff); $aff_final .= print_info($stuff, 0, 0, 0); } else { $aff_final .= "<strong>" . $ranger->resa_cb . " : {$msg[395]}</strong><br>"; } } else { $aff_final .= "<strong>" . $ranger->resa_cb . " : {$msg[395]}</strong><br>"; } } if ($aff_final) { return $begin_result_liste . $aff_final . $end_result_liste; } else { return $msg['resa_liste_docranger_nodoc']; } }
')"> <span class="timecode">(<?php print_time($bookmark['timecode']); ?> ) </span><?php print_bookmark_title($bookmark['title']); ?> </a> <div class="result_detail" id="result_detail_<?php echo $index; ?> "> <div class="bookmark_info"> <div class="blue-title">®Description® :</div> <?php print_info($bookmark['description']); ?> <div class="blue-title" style="margin-top: 6px;">®Keywords® : </div> <?php print_info($bookmark['keywords']); ?> </div> </div> </li> <?php $album_ref = $bookmark['album']; $asset_ref = $bookmark['asset']; } ?> </ul> </div>
<?php include_once 'remora/settings.php'; include_once 'remora/lib.php'; print_info("Installing Remora Version ".VERSION); // Establish a db connection $conn = db_init(); print_info("Installation completed successfully"); ?>
?> ', '<?php echo $album['token']; ?> ');"> <b style="text-transform:uppercase;"><?php echo suffix_remove($album['album']); ?> </b> <?php if ($private) { echo '(®Private_album®)'; } ?> <br/><?php print_info($album['title']); ?> </a> </li> <?php if (acl_user_is_logged()) { ?> <div class="album_options left"> <a class="up-arrow" <?php if ($index == 0) { ?> style="visibility:hidden"<?php } ?> href="javascript:move_album_token('<?php
if (isset($cpu_info['model name'])) { echo ': ' . $cpu_info['model name']; } echo '</td></tr>'; print_info($cpu_info); } } $pci_info = $system->get_hardware_pci(); if (sizeof($pci_info) != 0) { echo '<tr><td colspan="3" class="box-subheadspace" style="line-height: 10px;"> </td></tr>'; echo '<tr><td colspan="3" class="box-subheadline">' . $GLOBALS['language']['status']['hw_pci'] . '</td></tr>'; echo '<tr>'; echo ' <td width="140" class="box-pl" align="center">' . $GLOBALS['language']['status']['hw_pciadress'] . '</td>'; echo ' <td width="*" colspan="2" class="box-pl" align="center">' . $GLOBALS['language']['status']['hw_pcivalue'] . '</td>'; echo '</tr>'; print_info($pci_info); } $ide_info = $system->get_hardware_ide(); if (sizeof($ide_info) != 0) { echo '<tr><td colspan="3" class="box-subheadspace" style="line-height: 10px;"> </td></tr>'; echo '<tr><td colspan="3" class="box-subheadline">' . $GLOBALS['language']['status']['hw_ide'] . '</td></tr>'; echo '<tr>'; echo ' <td width="140" class="box-pl" align="center">' . $GLOBALS['language']['status']['hw_idedevice'] . '</td>'; echo ' <td width="*" class="box-pl" align="center">' . $GLOBALS['language']['status']['hw_idefield'] . '</td>'; echo ' <td width="300" class="box-pl" align="center">' . $GLOBALS['language']['status']['hw_idevalues'] . '</td>'; echo '</tr>'; foreach ($ide_info as $ide => $ide_info) { $device = $ide; $field = ''; $value = ''; foreach ($ide_info as $device_field => $device_value) {
<!-- Developped by: Jose Manuel González Hernández Universidad de La Laguna, Tenerife, Spain Smith-Waterman alignment is used. More info in the script. --> <html><head><title>Alignment of two DNA or RNA sequences</title></head> <body bgcolor=FFFFFF> <?php // WHEN INFO IS REQUESTED ($_GET["action"]=="info", PRINT INFO AND FINISH if ($_GET["action"] == "info") { print_info(); // this function is located at the end of the script die; // after the info, die } // IF NOTHING HAS BEEN POSTED, PRINT THE FORM AND FINISH if (!$_POST) { print_form(); // this function is located at the end of the script die; // after the form, die } // GET SEQUENCES AND PREPARE THEM $seqa = strtoupper($_POST["sequence"]); $seqb = strtoupper($_POST["sequence2"]); $seqa = preg_replace("/\\W|\\d/", "", $seqa); // remove useless characters $seqb = preg_replace("/\\W|\\d/", "", $seqb); // remove useless characters
function batch_operation(&$nodes, &$ops, &$cur_batch_nodes, $line, $first_time = FALSE) { global $batch_path, $idc, $waiting_time; echo_color("[==BEGIN==============================]", GREEN); assert(TRUE === zoo_batch_operation($nodes, $ops, $cur_batch_nodes)); if ($first_time) { $children = QConf::getBatchConf($batch_path); } sleep($waiting_time); $children = QConf::getBatchConf($batch_path); var_dump($children); print_info($children == $cur_batch_nodes, $line); $keys = QConf::getBatchKeys($batch_path); var_dump($keys); print_info($keys == array_keys($cur_batch_nodes), $line); //print_check_script(TRUE === check_script_result($batch_path, $idc, "4", $waiting_time + 2), $line); echo_color("[===============================END==]", GREEN); echo PHP_EOL . PHP_EOL; }
print $line.xref_for($ofset)."\n"; $lines++; } } fclose($fd); print "</pre></tt></body></html>\n"; exit(); } ?> <table> <tr> <td valign="top" width="240" bgcolor="#101010"> <div style="align:center;background-color:#303030"><center><tt>/* radare web frontend */</tt></center></div> <div class="controls"><pre> <? print_info(); ?> <? print_controls(); ?> <form method="get"><input type=hidden name=tab value="<?php echo $tab; ?> "><input type=hidden name="action" value="add_ref"><input type="hidden" name="offset" value="<?php echo $offset; ?> "> ; references ; add <input name="input"></form> <form method="get"><input type=hidden name=tab value="<?php echo $tab; ?> "><input type=hidden name="action" value="add_com"><input type="hidden" name="offset" value="<?php echo $offset;