Professional CodeIgniter
Chapter 8: Last-Minute Upgrades 258 Here ’ s the markup for the admin_subs_mail view: < ?php echo form_open(‘admin/subscriber ...
Chapter 8: Last-Minute Upgrades 259 Integrating the TinyMCE Editor If you ’ ve been paying attention, you ’ ll notice that the t ...
Chapter 8: Last-Minute Upgrades 260 Rewriting the sendemail() Function Now it ’ s time to rewrite the sendemail() function you w ...
Chapter 8: Last-Minute Upgrades 261 function sendemail(){ if ($this- > input- > post(‘subject’)){ $test = $this- > inpu ...
Chapter 8: Last-Minute Upgrades 262 Essentially, at the bottom of each e - mail will be a small Unsubscribe link that, when clic ...
Chapter 8: Last-Minute Upgrades 263 $this- > email- > from(‘
[email protected]
’, ‘ClaudiasKids.net’); $this- > email- ...
Chapter 8: Last-Minute Upgrades 264 echo form_open(‘admin/subscribers/sendemail’); echo “ < p > < label for=’subject’ & ...
Chapter 8: Last-Minute Upgrades 265 One last upgrade is needed before you can move on. Previously in this chapter, the idea was ...
Chapter 8: Last-Minute Upgrades 266 “ Well, I ’ m going to be doing a sweep tomorrow to secure the web site. Anywhere there migh ...
Security and Performance In Chapter 8 , you added two vital pieces to Claudia ’ s web site: a simple page manager and a simple n ...
Chapter 9: Security and Performance Chapter 9: Security and Performance 268 CodeIgniter has some built - in security processes t ...
Chapter 9: Security and Performance 269 function verifyUser($u,$pw){ $this- > db- > select(‘id,username’); $this- > db- ...
Chapter 9: Security and Performance 270 Did you notice that at the end of updateUser() , the $_POST[‘id’] is escaped? You ’ re g ...
Chapter 9: Security and Performance 271 function verifyUser($u,$pw){ $this- > db- > select(‘id,username’); $this- > db- ...
Chapter 9: Security and Performance 272 ‘status’ = > db_clean($_POST[‘status’],8) , ‘password’ = > db_clean($_POST[‘passwo ...
Chapter 9: Security and Performance 273 Now that you ’ ve written the db_clean() function, which incorporates the substr() funct ...
Chapter 9: Security and Performance 274 Without belaboring the obvious, here are a few of those modified functions: function get ...
Chapter 9: Security and Performance 275 Securing the MColors Model MColors is a very simple model. The only changes you ’ ll nee ...
Chapter 9: Security and Performance 276 Securing the MOrders Model Although the MOrders model never touches a database, that doe ...
Chapter 9: Security and Performance 277 Securing the MPages Model MPages is just like all the rest. You need to protect the getP ...
«
8
9
10
11
12
13
14
15
16
17
»
Free download pdf