get_col("DESC $table_name", 0) as $column ) { if ($debug) echo("checking $column == $column_name
"); if ($column == $column_name) { return true; } } //didn't find it try to create it. $q = $wpdb->query($create_ddl); // we cannot directly tell that whether this succeeded! foreach ($wpdb->get_col("DESC $table_name", 0) as $column ) { if ($column == $column_name) { return true; } } return false; } } function btc_altertable() { global $tablecomments; $sql = "ALTER TABLE $tablecomments ADD COLUMN comment_reply_ID INT NOT NULL DEFAULT 0;"; maybe_add_column($tablecomments, 'comment_reply_ID', $sql); } function btc_alter_comment($new_id) { global $tablecomments, $wpdb; $sql = "UPDATE $tablecomments SET comment_reply_ID=".$_POST['comment_reply_ID']." WHERE comment_ID = $new_id;"; $wpdb->query($sql); } function briansnestedcomments() { global $font_gets_smaller; if (!($withcomments) && ($single)) return; // You can safely delete the single line below if your threaded comments are up and running btc_altertable(); ?> Usable Security » Tools

Archive for the 'Tools' Category

Ka-Ping Yee and Kragen Sitaker: Passpet

Thursday, July 13th, 2006

Read the paper here.
Passpet is a Firefox extension that helps you manage your passwords and protects you from phishing.  You memorize one master secret, and you click on your Passpet to generate a unique password for each site.  The Passpet icon is a randomly chosen animal that differs from user to user.  [...]

Xiang Cao and Lee Iverson: Intentional Access Management

Thursday, July 13th, 2006

Read the paper here.
People tend to share files using e-mail instead of file sharing systems.  The authors feel that one of the major obstacles to using file sharing features is the difficulty of end-user access control, and so they decided to analyze this problem.  They looked at the access control mechanism in the [...]

How to Manage Passwords and Prevent Phishing

Wednesday, February 8th, 2006

I have an idea about how to solve the phishing problem.  Although proposals to solve phishing are not yet as common as proposals to solve spam, there certainly have been quite a few of them, so you would be right to wonder what makes this proposal any different or any more likely to work.
So, [...]