$response = checkIfDuplicate($postdec['create_shittalk_Text']);
                 //returns true if successful, false otherwise
             }
             break;
         case 'get_RandomRows':
             if (!empty($postdec['limit'])) {
                 $response = getRandomRows($postdec['limit']);
                 //returns true if successful, false otherwise
             }
             break;
         case 'get_RateMoreTableRows':
             $response = createRateMoreTableRows();
             //returns an array of table rows
             break;
         case 'get_RandomList':
             $response = getRandomList();
             break;
         case 'get_TopList':
             $response = getTopList();
             break;
         case 'get_RecentList':
             $response = getRecentList();
             break;
         case 'get_TotalBindCount':
             $response = getTotalBindCount();
             break;
         case 'get_IncludedBindCount':
             $response = getIncludedBindCount();
             break;
     }
 }
Beispiel #2
0
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" style="font-family: Georgia, 'Times New Roman', Times, serif;" href=".">FRESH SWAG</a>
      <span class="navbarDesc"></span>
    </div>
    <div class="navbar-collapse collapse">
        <p class="navbar-text" style="margin: 10px 15px">
            <a title="мы на Пикабу" href="http://pikabu.ru/profile/freshs" target='_blank' ><img style="height:30px" alt="мы на Пикабу" src="img/pk_64.png"/></a>
            <a title="мы в ВК" href="https://vk.com/freshswagru" target='_blank' ><img style="height:30px" alt="мы в ВК" src="img/vk_64.png"/></a>
        </p>
        <form class="navbar-form navbar-left hidden-xs">
          <div class="form-group">
          <?php 
$vars = getRandomList();
$placeholder = $vars[array_rand($vars)];
?>
            <input id="search" type="text" class="form-control typeahead" placeholder="поиск: <?php 
echo $placeholder;
?>
">
          </div>
        </form>
    <?php 
if ($login) {
    ?>
      <ul class="nav navbar-nav navbar-right">
        <li class="hidden-xs">
            <img height='50px' src='<?php 
    echo $user['photo'];