Exemplo n.º 1
0
    while ($rs = $db->fetch_array($result)) {
        echo '          <tr>     
 <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1">';
        echo $rs["id"];
        echo '</div></div></td>
 <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1">';
        echo $rs["mobile"];
        echo '</div></div></td>
 <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1">';
        echo $rs["content"];
        echo '</div></div></td>
 <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1">';
        echo date("Y-m-d", $rs["addtime"]);
        echo '</div></div></td>
 <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1">';
        echo getsmsstatus($rs["outmsg"]);
        echo '</div></div></td>
 <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1"><a href="?action=del&id=';
        echo $rs["id"];
        echo '&pageno=';
        echo $pageno;
        echo '" onClick="return confirm(\'确定删除?\');">删除</a></div></div></td>
</TR>
          ';
    }
} else {
    echo '      <tr>
            <td height="20" bgcolor="#FFFFFF" colspan="6"><div align="center"></div></td>
          </tr>
      ';
}
Exemplo n.º 2
0
#!/usr/bin/php -q
<?php 
//error_reporting(0);
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
// The path to directory of installed playsms
$PLAYSMS_PATH = $argv[1];
// DO NOT CHANGE ANYTHING BELOW THE LINE
// ------------------------------------------------------
if (file_exists($PLAYSMS_PATH)) {
    chdir($PLAYSMS_PATH);
    // mark this process as a DAEMON_PROCESS
    $DAEMON_PROCESS = true;
    if (file_exists('init.php')) {
        include 'init.php';
        $fn = $apps_path['libs'] . '/function.php';
        if ($core_config['daemon_process'] && file_exists($fn)) {
            include $fn;
            if ($apps_path['incs']) {
                echo "begin cycling\n";
                playsmsd();
                getsmsinbox();
                getsmsstatus();
                execcommoncustomcmd();
                echo "session:" . mktime() . "\n";
                echo "end cycling\n";
            }
        }
    }
}