コード例 #1
0
ファイル: sysmon.php プロジェクト: nulled/nulled
function parse_hddtemp($lines)
{
    list($l, , $c) = explode(':', $lines[0]);
    $l = trim($l);
    list($c) = explode(' ', trim($c));
    // celcius
    $f = c2f($c);
    // convert Celcius to Fahrenhei
    $output = "{$l}: {$c} {$f} F";
    return $output;
}
コード例 #2
0
    <th>#</th>
    <th>نام </th>
    <th>شماره تماس</th>
    <th>بخش</th>
	<th>فکس</th>
	<th>ایمیل</th>
	<th>سایت</th>
	<th>منبع/مرجع</th>
	<th>توضیحات</th>
    <th>ویرایش</th>
      </thead>
  <tbody>
    <?php 
$all_contact = mysql_query("select * from contact where trash='0' order by cid desc");
if (mysql_num_rows($all_contact) > 0) {
    $rows .= 'تعداد کل رکوردهای ثبت شده : ' . c2f(mysql_num_rows($all_contact));
    while (list($cid, $cname, $tell, $gid, $disc, $date_add, $trash, $mail, $site, $fax, $reffrence) = mysql_fetch_array($all_contact)) {
        $rows .= ' 
		<tr>
				<td>' . $cid . ' </td>
				<td>' . $cname . '</td>
				<td><B>' . $tell . '</B></td>
				<td>' . $cat_title[$gid] . '</td> 
				<td>' . $fax . '</td> 
				<td>' . $mail . '</td> 
				<td>' . $site . '</td> 
				<td>' . $reffrence . '</td>
				<td title="' . $disc . '">' . mb_substr($disc, 0, 53) . '</td>
				<td><a href="index.php?do=dell&id=' . $cid . '">حذف</a> | <a href="index.php?do=edit&id=' . $cid . '">ویرایش</a></td> 	
		</tr>';
    }