コード例 #1
0
ファイル: jargon.php プロジェクト: chinnytp/jargon-parser
<?php

include 'jargonLibrary.php';
if (isset($_POST['result'])) {
    $a_jarWordData = getJargon($_POST['result']);
} elseif (isset($_GET['jid'])) {
    $jid = $_GET['jid'];
    settype($jid, 'integer');
    $o_search = new JarSearch();
    $o_search->search($jid);
    $sa_names = $o_search->getNames();
    $a_jarWordData = getJargon($sa_names[0]);
} else {
    $a_jarWordData = getJargon('hacker');
}
echo "<!DOCTYPE html>\n";
echo "<html>\n";
echo "\n";
echo "<head>\n";
echo "<meta name=\"viewport\" content=\"width=device-width, minimum-scale=1, maximum-scale=1\">\n";
echo "<title>Mobile Jargon File</title>\n";
echo "\n";
echo "<style>\n";
echo "    .imDiv\n";
echo "    {\n";
echo "    float: left;\n";
echo "    padding-right: 1em;\n";
echo "    padding-bottom: 1em;\n";
echo "    }\n";
echo "\n";
echo "    .black\n";
コード例 #2
0
ファイル: search.php プロジェクト: chinnytp/jargon-parser
echo "<body width = \"100%\" class = \"bodyclass\">\n";
echo "\n";
echo "<section id = \"MainPage\" data-role = \"page\">\n";
echo "  <header data-role = \"header\">\n";
echo " \n";
echo "    <h1>The Hacker Dictionary</h1>\n";
echo "  </header>\n";
echo "      <div class = \"ui-btn-active\" data-role = \"navbar\">\n";
echo "    <ul data-role = \"navbar\">\n";
echo "       <li><a href = \"index.php#NewSearch\" data-transition=\"fade\">NEW SEARCH</a></li>\n";
echo "       <li><a href = \"index.php#TopRated\" data-transition=\"fade\">TOP RATED</a></li>\n";
echo "       <li><a href = \"random.php\" data-transition=\"fade\">RANDOM</a></li>\n";
echo "    </ul>\n";
echo "  </div> \n";
//print_r($_POST);
$o_search = new JarSearch();
$o_search->search($_POST['searchtext']);
echo "<div class = \"content\" data-role = \"content\">";
echo "<ul data-role = \"listview\">";
echo "<form method=\"post\" action=\"jargon.php\">\n";
foreach ($o_search->getNames() as $i => $item) {
    echo '<li>';
    //echo '$item['.$i. ']: ' . $item;
    echo "<input type=\"submit\" name=\"result\" value=\"" . $item . "\">";
    echo '</li>';
}
echo "</form>";
echo "</ul>";
echo "</div>";
echo "  <footer data-role = \"footer\" data-position=\"fixed\">\n";
echo "\t\t<div class = \"ui-btn-active\" data-role = \"navbar\">\n";
コード例 #3
0
ファイル: testing.php プロジェクト: chinnytp/jargon-parser
    
    foreach($a_jarData['def'] as $defItem)
        echo $defItem;*/
//gen clean jargon
/*foreach($a_lexiList as $item)
  getJargon($item);*/
// gen ratings
/*foreach($a_lexiList as $item)
  getRating($item);*/
/*$myLexiSearch = lexiSearch('hac');
  if(gettype($myLexiSearch) == "array")
      foreach($myLexiSearch as $i => $item)
          echo '<br> possiblity ' . $i . ' ' . $a_lexiList['name'][$item];
  else
      echo '<br> lexiSearch: ' . $a_lexiList['name'][$myLexiSearch]; */
$searchJargon = new JarSearch();
$searchJargon->search(1337);
//$a_lexiList = $searchJargon->getLexiList();
echo '<br>';
print_r($searchJargon->getNames());
foreach ($searchJargon->getNames() as $i => $item) {
    echo '<br> $item[' . $i . ']: ' . $item;
}
$word = randomWord();
echo '<br>';
print_r($word);
echo '<br>';
$a_top = getTopRate();
echo '<br>';
print_r($a_top);
/*$a_ratJar = getRating('hack');