function save($hash, $f = null) { if (!$this->check_record($hash)) { return false; } $detail = $this->detail(); $has_created = false; $has_modified = false; $filter_hash = array(); foreach ($detail as $i) { if ($i["name"] == "created") { $has_created = true; } elseif ($i["name"] == "modified") { $has_modified = true; } elseif ($i["name"] == "ip") { $filter_hash["ip"] = $_SERVER[REMOTE_ADDR]; } if ($hash[$i["name"]]) { $filter_hash[$i["name"]] = $hash[$i["name"]]; } } if ($hash["id"]) { if ($has_modified) { $filter_hash['modified'] = ima(); } if ($f) { return $this->peek_update($filter_hash, $f); } else { return $this->update($filter_hash); } } else { if ($has_created) { $filter_hash['created'] = ima(); } return $this->create($filter_hash); } }
ima('1280x800', 'lg-6-12 md-12-12'); ?> </div> <div class="hg-6-12 lg-12-12"><?php ima('1920x1200'); ?> </div> </div> </div> <div class="extended-wrapper hg-fluid-wrapper"> <div class="row"> <div class="lg-8-12 md-12-12 sm-12-12"> <?php ima('1280x400', 'lg-12-12 md-12-12'); ?> <?php ima('1280x800', 'lg-6-12 md-12-12'); ?> <?php ima('1280x800', 'lg-6-12 md-12-12'); ?> </div> <div class="lg-4-12 md-12-12 sm-12-12"> <?php ima('800x1000'); ?> </div> </div> </div> </body> </html>