Update Copyright etc.

Updating the copyright and the contributor list.
This commit is contained in:
Danang Probo Sayekti 2015-07-09 09:43:55 +07:00
commit a2ee15a05c
4 changed files with 16 additions and 8 deletions

View file

@ -878,7 +878,7 @@ post('/add/post', function () {
$proper = is_csrf_proper(from($_REQUEST, 'csrf_token'));
$title = from($_REQUEST, 'title');
$fi = from($_REQUEST, 'fi');
$img = from($_REQUEST, 'img');
$vid = from($_REQUEST, 'vid');
$tag = from($_REQUEST, 'tag');
$url = from($_REQUEST, 'url');

View file

@ -596,7 +596,8 @@ function get_count($var, $str)
$tmp = array();
foreach ($posts as $index => $v) {
$url = $v[$str];
$arr = explode('_', $v[$str]);
$url = $arr[0];
if (strpos($url, "$var") !== false) {
$tmp[] = $v;
}