/** * Watch for license activation * * @uses init */ public static function listen() { if (isset($_POST['edd_action'], $_POST['license']) && 'activate_license' == $_POST['edd_action']) { if (is_email($_POST['license'])) { $create = new create(sanitize_email($_POST['license'])); if (is_string(self::$code = $create->get_license_code())) { self::$license_id = $create->get_license_id(); $_POST['license'] = self::$code; self::$user = $create->get_user(); self::$trial = true; } } else { self::$code = strip_tags($_POST['license']); } } }
// Theme options theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,emotions,media,advhr,|,ltr,rtl,|,fullscreen", //theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true }); </script> </head> <body> <form action="" method="post"> <?php $presentation = new create(); // if submit button pressed if (isset($_POST['submit'])) { $presentation->save(); } function __autoload($name) { require_once "classes/{$name}.php"; } $presentation->parse_presentation(); ?> <input type="submit" value="Save" name="submit"/> </form> </body> </html>
} include_once ROOT_DIR . 'lib/class/member.class.php'; $this->member = new member(); $members = $this->member->getMemberById($row['member_id']); //对应user的键值 foreach ($members as $key => $values) { $mem[$values['id']] = $values; } //查询表中是否已经存在这样一条记录 $sql = "SELECT * FROM " . DB_PREFIX . "status_favorites WHERE status_id =" . $this->input['id'] . " and member_id =" . $this->user['user_id']; $rowf = $this->db->query_first($sql); if ($rowf) { $this->errorOutput(INSERT_EXIT); } //收藏表中记录一条数据 $sql = "INSERT " . DB_PREFIX . "status_favorites(\r\n\t\t\t\t\tstatus_id,\r\n\t\t\t\t\tmember_id,\r\n\t\t\t\t\tfavorite_time\r\n\t\t\t\t\t)\r\n\t\t\t\t\tVALUES(\r\n\t\t\t\t\t" . $this->input['id'] . ",\r\n\t\t\t\t\t'" . $this->user['user_id'] . "',\r\n\t\t\t\t\t" . TIMENOW . "\t\t\t\t\r\n\t\t\t\t\t)\r\n\t\t\t\t\t"; $rowd = $this->db->query($sql); //如果删除成功则返回删除的数据 if ($rowd) { //博客信息和用户信息合并 $this->setXmlNode('statuses', 'status'); $row['user'] = $mem[$row['member_id']]; $this->addItem($row); $this->output(); } else { $this->errorOutput(INSERT_FASLE); } } } $out = new create(); $out->create();
<head> <style> <?php include 'style.css'; ?> </style> </head> <body class="sucess-page"> <?php require_once 'create.php'; //require_once 'grid.php'; if (isset($_POST['data'])) { $data = $_POST['data']; $create = new create($data); $names = $create->envNameCheck(); // Checking if the requested name is busy if (!in_array($data['input-ext-name'], $names)) { $domains = $create->dbInsert(); echo "<div class='message'>You've made successfull request for the following domains: " . "</div>"; foreach ($domains as $domain) { echo '<div class="domains">' . $domain . "</div>"; } echo '<div class="env-details">You will receive an email with the environment details</div>'; echo '<div class="go-back-button"><a href="http://envsmanager.ecomwisedev.com">Go Back</a></div>'; } else { echo "<div class='notification-message'>The requested extension name is already used. Please try with another name.</div>"; echo '<div class="go-back-button"><a href="http://envsmanager.ecomwisedev.com">Go Back</a></div>'; } } else { echo "<div class='reguired-message'>Please type all required input</div>"; }
public function writeName() { return "My name is Reuben Moddel"; } function create_header($level, $text) { if ($level == 1) { echo '<h1>' . $text . '</h1>'; } elseif ($level == 2) { echo '<h2>' . $text . '</h2>'; } elseif ($level == 3) { echo '<h3>' . $text . '</h3>'; } elseif ($level == 4) { echo '<h4>' . $text . '</h4>'; } } function create_paragraph($text) { echo '<p>' . $text . '</p>'; } } $a = new create(); $test = 'this is a test'; $a->create_Header(4, $a->writeName()); $a->create_header(1, $test); $a->create_paragraph("hello Eli"); ?> </center> </body> </html>