Server : Apache System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 User : www ( 1000) PHP Version : 5.6.40 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/saimikebio.com/mobile/ |
<?php define('IN_ECTOUCH', true); require( 'include/init.php'); $action = isset($_REQUEST['act']) ? $_REQUEST['act'] : 'default'; if ($_REQUEST['act'] == 'contact') { assign_template(); $article = get_article_info(5); $smarty->assign('article', $article); $smarty->assign('action', $action); $smarty->display('ectouch.dwt'); } elseif ($_REQUEST['act'] == 'share') { assign_template(); $smarty->assign('HTTP_REFERER', $_SERVER['HTTP_REFERER']); $smarty->assign('action', $action); $smarty->display('ectouch.dwt'); } elseif ($_REQUEST['act'] == 'map') { $smarty->assign('action', $action); $smarty->display('ectouch.dwt'); } function get_article_info($article_id) { $sql = "SELECT a.*, IFNULL(AVG(r.comment_rank), 0) AS comment_rank " . "FROM " . $GLOBALS['ecs']->table('article') . " AS a " . "LEFT JOIN " . $GLOBALS['ecs']->table('comment') . " AS r ON r.id_value = a.article_id AND comment_type = 1 " . "WHERE a.is_open = 1 AND a.article_id = '$article_id' GROUP BY a.article_id"; $row = $GLOBALS['db']->getRow($sql); if ($row !== false) { $row['comment_rank'] = ceil($row['comment_rank']); $row['add_time'] = local_date($GLOBALS['_CFG']['date_format'], $row['add_time']); if (empty($row['author']) || $row['author'] == '_SHOPHELP') { $row['author'] = $GLOBALS['_CFG']['shop_name']; } } return $row; } ?>