function feedburner_count_update() { $options = mso_get_option('samborsky_feedburner_count', 'plugins', array()); if (empty($options['last_update'])) { $options['last_update'] = 0; } if (feedburner_count_need_update($options['last_update'], $options['update_interval'] * 60)) { require getinfo('plugins_dir') . 'feedburner_count/download.php'; if ($content = get_download('https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=' . $options['feed_name'])) { preg_match('/circulation="(\\d+)"/', $content, $match); $options['count'] = (string) $match[1]; $options['last_update'] = time(); } else { $options['last_update'] = time() + 5 * 60; $options['count'] = 'Ошибка!'; } mso_add_option('samborsky_feedburner_count', $options, 'plugins'); } }
function get_yandex($url) { $ret = 'N/A'; if (substr($url, 0, 7) != 'http://') { $url = 'http://' . $url; } if ($content = get_download('http://bar-navig.yandex.ru/u?ver=2&url=' . urlencode($url) . '&show=1&post=0')) { if (class_exists('SimpleXMLElement')) { if ($xmldoc = new SimpleXMLElement($content)) { $tcy = $xmldoc->tcy; if (!empty($tcy)) { $ret = $tcy['value']; } } } else { preg_match("/value=\"(.\\d*)\"/", $content, $tic); if (!empty($tic[1])) { $ret = $tic[1]; } } } return $ret; }
?> </td> <td class="judul">Keterangan Lulus</td> <td><?php echo $tb['ket_lulus']; ?> </td> </tr> <tr> <td class="judul">Lokasi</td> <td><?php echo $tb['lokasi']; ?> </td> <td class="judul">Ijazah/SKL</td><td><?php get_download($tb['ijazah']); ?> </td> </tr> <tr> <td class="judul">Jenjang Pendidikan</td> <td><?php echo $tb['jenjang_pendidikan']; ?> </td> <td class="judul">IPK/GPA </td> <td> <div class="input_fields_wrap"> <?php echo $semester; ?>
<?php get_download($pkl['file_ktm']); ?> <input type="file" name="file_ktm" size="20"/> <input type="hidden" name="file_ktm2" value="<?php echo $pkl['file_ktm']; ?> "> </td> </tr> <tr> <td>SP3 ke Finance</td> <td> <?php get_download($pkl['file_sp3']); ?> <input type="file" name="file_sp3" size="20"/> <input type="hidden" name="file_sp32" value="<?php echo $pkl['file_sp3']; ?> "> </td> </tr> <tr> <td>Status</td> <td> <?php if ($pkl['status'] == 'antri') { ?>