function printTagTrees() { foreach (getSequences() as $sequence) { printTagTree($sequence); } }
// テーブル類削除 // テーブル類削除 case 'drop': $arrDsn = getArrayDsn($objDBParam); // テーブルの削除 if (count($objPage->arrErr) == 0) { $objPage->arrErr = lfExecuteSQL('./sql/drop_table.sql', $arrDsn, false); if (count($objPage->arrErr) == 0) { $objPage->tpl_message .= '○:テーブルの削除に成功しました。<br />'; } else { $objPage->tpl_message .= '×:テーブルの削除に失敗しました。<br />'; } } // シーケンスの削除 if (count($objPage->arrErr) == 0) { $objPage->arrErr = lfDropSequence(getSequences(), $arrDsn); if (count($objPage->arrErr) == 0) { $objPage->tpl_message .= '○:シーケンスの削除に成功しました。<br />'; } else { $objPage->tpl_message .= '×:シーケンスの削除に失敗しました。<br />'; } } $objPage = lfDispStep3($objPage); break; // 完了画面 // 完了画面 case 'complete': $GLOBAL_ERR = ''; $objPage = lfDispComplete($objPage); if (isset($_POST['send_info']) && $_POST['send_info'] === 'true') { // サイト情報を送信
<?php //this could be an information expert, should be easy to decouple of necessary // sentiment -> recall -> communication -> animation //should receive a request from the javascript, and will be responsible for sending back an http response for the moment. Could potentially pass additional requests to different scripts as well. //parse the request, it can have content to be sent, send that into the animation engine method and then //replace the xml with the appropriate image files. //throw a post retrieval, get the function that you want to occur based on send(content) @($q = htmlspecialchars(strip_tags($_POST['q']))); //echo "Made it to the script."; //echo "<p>Made it to the resolution engine.</p>"; if ($q == 'getSequences') { getSequences(); } function getSequences() { $arr = array('sequence' => array('image/cake/defaultcake1.png', 'image/cake/defaultcake2.png', 'image/cake/defaultcake3.png', 'image/cake/defaultcake4.png', 'image/cake/defaultcake5.png'), 'message' => array('Is someone there!?', 'Im fresh out of the oven! Wait, who are you?', 'Its so bright in here. Please... a little darker... I have a hangover...', 'Shake your pom pom, shake your pom pom, shake your pom poooooom.')); echo json_encode($arr); } ?>
* get sequence values from the source db */ MatrixDAL::changeDb($source_db); foreach ($info['sequences'] as $sequence) { $sequence_values[$sequence] = getSequenceValue($sequence); } /** * Switch to the destination db to * - drop sequences * - drop indexes * - truncate data tables */ MatrixDAL::restoreDb(); if ($first_run) { pre_echo('Dropping destination sequences'); $del_seqs = getSequences(); foreach ($del_seqs as $sequence) { printName('Dropping: ' . strtolower($sequence)); $sql = 'DROP SEQUENCE ' . $sequence; $ok = MatrixDAL::executeSql($sql); if ($ok === false) { printUpdateStatus('Failure, unable to run query: ' . $sql); exit; } printUpdateStatus('OK'); } pre_echo('Dropping destination indexes'); $del_indexes = getIndexes(); foreach ($del_indexes as $index) { if (substr($index, 0, 3) == 'sq_') { printName('Dropping: ' . $index);