Пример #1
0
<label>Enter Zawgyi Text</label><br>
<textarea cols="80" rows="10" name="nor">
<?php 
if (isset($_POST['nor'])) {
    echo stripslashes($_POST['nor']);
} else {
    echo "ေယဓမၼာ ေဟတုပၸဘဝါ ေတသံ ေဟတံု တထာဂေတာ\nအာဟေတသဥၥ ေယာနိေယာေဓါ ဧဝံ ဝါဒီ မဟာသမေဏာ\n\nအေၾကာင္းေၾကာင့္ အက်ဳိးျဖစ္ရာ၏။\nအေၾကာင္းမျဖစ္ေစျခင္းတရားကို ျမတ္စြာဘုရားေဟာေတာ္မူ၏။";
}
?>
</textarea>
<input type="submit" value="Normalize">
<br>
<label>Result</label><br>
<textarea cols="80" rows="10" name="res"><?php 
echo $string;
?>
</textarea>
<input type="checkbox" name="chk" value="syllable"
<?php 
if (isset($_POST['chk'])) {
    echo "checked=true";
}
?>
><label>Syllable Breaking Enable</label>
</form>
<?php 
PtimerStop();
?>
</body>
</html>
Пример #2
0
    cache_file('js' . DIR_SEP . 'jquery.js', method_retrieve("script_jquery"));
    $writing = '';
    $writing .= method_retrieve('style_default');
    $writing .= NEWLINE;
    $writing .= '$output = <<< OUTPUT';
    $writing .= NEWLINE;
    $writing .= NEWLINE;
    $writing .= method_retrieve('style_html');
    $writing .= NEWLINE;
    $writing .= NEWLINE;
    $writing .= 'OUTPUT;';
    $writing .= NEWLINE;
    $writing .= 'echo $output;';
    $writing .= NEWLINE;
    $writing .= NEWLINE;
    cache_file('style' . DIR_SEP . 'style.css', catch_output($writing));
}
include CMS_FILE_INCLUDE;
// Page load time output (won't load on Style.css stuff)
if (function_exists('br') && function_exists('isGroupMember')) {
    if (isGroupMember(1) && constant_test('SETTING_PHP_VARIABLES', 'show')) {
        echo '<div class="container-fluid">';
        echo PtimerStop();
        echo catch_output(method_retrieve('cms_verbose'));
        echo '</div>';
    }
}
// ************************** Clean **************************
// Keep the tmp folder clean of error logs
//if (file_exists(CMS_ERROR_PHP)) unlink(CMS_ERROR_PHP);
//if (file_exists(ini_get('error_log'))) unlink(ini_get('error_log'));