Exemple #1
0
    $size->del();
    echo language('SUCCESS_size_deleted');
}
if ($_POST[create_size]) {
    if ($_POST[width] && $_POST[height]) {
        class_sizes::add($_POST[width], $_POST[height]);
        echo language('SUCCESS_size') . $_POST[width] . "x" . $_POST[height];
    } else {
        echo "All Fields Required";
    }
}
if ($_POST[create_tag] || $_POST[edit_tag]) {
    $name = mysql_real_escape_string($_POST[tag_name]);
    $url = mysql_real_escape_string($_POST[tag_url]);
    $size = mysql_real_escape_string($_POST[size]);
    $sizes = new class_sizes($size);
    if ($name && $url && $size) {
        if (filter_var($url, FILTER_VALIDATE_URL) === FALSE) {
            echo language('ERROR_url');
            exit;
        }
        $parse = parse_url($url);
        $url = $parse['host'];
        if ($_POST[create_tag]) {
            class_tags::add($logged->get_unique(), $name, $url, 'all', $sizes->get_size(), $tag_cost);
            echo language('SUCCESS_tag_created');
        }
        if ($_POST[edit_tag]) {
            $tag = new class_tags($_POST[unique]);
            $tag->set_name($name);
            $tag->set_website($url);
Exemple #2
0
                 <td width="24%"><?php 
echo language('TABLE_id');
?>
</td>
                 <td width="67%">Size</td>
                 <td width="9%">Delete </td>
               </tr>
             </table>
           </div>
      	</div>
        <?php 
$sql = "SELECT * FROM `app_sizes` ";
$result = mysql_query($sql);
$count = 0;
while ($categories = mysql_fetch_array($result)) {
    $size = new class_sizes($categories[unique]);
    ?>
        <div class="box list" id="<?php 
    echo $size->get_unique();
    ?>
">
          <table width="100%" border="0">
            <tr>
              <td width="24%"><strong>#<?php 
    echo $size->get_unique();
    ?>
</strong></td>
              <td width="67%"><?php 
    echo $size->get_size();
    ?>
</td>