100+ results for 'php stripslashes'
Not the results you expected?
class.I18Nbase.inc.php (http://flaimo-php.googlecode.com/svn/trunk/) PHP · 257 lines
1 <?php
2 if (!extension_loaded('mbstring')) {
3 die ('multibyte-string extention not installed!');
8 */
9 function __autoload($class){
10 require_once( 'class.' . $class . '.inc.php');
11 } // end function
74 * The mother of all (I18N) classes :-); provides basic methods used by all other classes
75 * @author Michael Wimmer <flaimo@gmail.com>
76 * @category flaimo-php
77 * @example ../www_root/i18n_example_script.php i18n example script
78 * @license GNU General Public License v3
79 * @link http://code.google.com/p/flaimo-php/
80 * @package i18n
81 * @version 2.3.1
class.search.php (https://gitlab.com/vectorci/Collabtive) PHP · 352 lines
1 <?php
2 /**
3 * This class provides methods for searching content
8 * @package Collabtive
9 * @link http://www.o-dyn.de
10 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v3 or later
11 */
12 class search
81 $result["type"] = "project";
82 $result["icon"] = "projects.png";
83 $result["name"] = stripslashes($result["name"]);
84 $result["desc"] = stripslashes($result["desc"]);
85 $result["url"] = "manageproject.php?action=showproject&id=$result[ID]";
86 array_push($projects, $result);
87 }
meta.php (https://github.com/rajvardhansingh/wordpress.git) PHP · 344 lines
1 <?php
2 /**
3 * Metadata API
45 // expected_slashed ($meta_key)
46 $meta_key = stripslashes($meta_key);
48 if ( $unique && $wpdb->get_var( $wpdb->prepare(
53 $_meta_value = $meta_value;
54 $meta_value = maybe_serialize( stripslashes_deep($meta_value) );
56 $wpdb->insert( $table, array(
106 // expected_slashed ($meta_key)
107 $meta_key = stripslashes($meta_key);
109 if ( ! $meta_id = $wpdb->get_var( $wpdb->prepare( "SELECT $id_column FROM $table WHERE meta_key = %s AND $column = %d", $meta_key, $object_id ) ) )
wkplaceadmin.php (https://github.com/purpool/purpool.git) PHP · 285 lines
3 #################################################################
4 # Name: events.php #
5 # Author: John Kuiphoff #
6 # Description: Allows users to create events #
9 // Include configuration file
10 include_once('config_path.php'); include_once($config_path.'config.php');
12 // Include common utility library
33 if($row['isworkplaceadmin'] != '1')
34 {
35 header("Location: index.php");
36 }
Forms.php (https://gitlab.com/blueprintmrk/bladencountyrecords) PHP · 483 lines
widgets.php (https://gitlab.com/sihabudinahmad/asppi) PHP · 133 lines
66 <li id="arch_item_<?php echo $id_item; ?>" class="news_archiv_item">
67 <a href="<?php the_permalink() ?>" title="<?php echo esc_attr(get_the_title() ? get_the_title() : get_the_ID()); ?>"><?php echo esc_attr( get_the_date( 'd.m.Y' ) ); ?></br><?php if ( get_the_title() ) the_title(); else the_ID(); ?></a>
68 </li>
69 <?php endwhile; ?>
122 <p><label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'fruitful' ); ?></label>
123 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p>
125 <p><label for="<?php echo esc_attr( $this->get_field_id( 'number' ) ); ?>"><?php _e( 'Number of posts to show:', 'fruitful' ); ?></label>
126 <input id="<?php echo esc_attr( $this->get_field_id( 'number' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'number' ) ); ?>" type="text" value="<?php echo esc_attr( $number ); ?>" size="3" /></p>
129 <p><label for="<?php echo esc_attr( $this->get_field_id( 'textarea_newsarchiv' ) ); ?>"><?php _e( 'Text Message:', 'fruitful' ); ?></label>
130 <textarea id="<?php echo esc_attr( $this->get_field_id( 'textarea_newsarchiv' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'textarea_newsarchiv' ) ); ?>" class="widefat" cols="16" rows="5"><?php echo stripslashes( $textarea_newsarchive ); ?></textarea></p>
131 <?php
gettext.php (https://github.com/BenBE/ispCP.git) PHP · 251 lines
20 require_once(SM_PATH . 'functions/global.php');
22 global $gettext_php_domain, $gettext_php_dir, $gettext_php_loaded,
23 $gettext_php_translateStrings, $gettext_php_loaded_language,
59 global $squirrelmail_language, $gettext_php_translateStrings,
60 $gettext_php_domain, $gettext_php_dir, $gettext_php_loaded,
61 $gettext_php_loaded_language, $gettext_php_short_circuit;
159 */
160 function _($str) {
161 global $gettext_php_loaded, $gettext_php_translateStrings,
162 $squirrelmail_language, $gettext_php_loaded_language,
217 */
218 function bindtextdomain($name, $dir) {
219 global $gettext_php_domain, $gettext_php_dir, $gettext_php_loaded;
221 if ($gettext_php_domain != $name) {
HttpRequest.class.php (https://github.com/openstate/HNS.dev.git) PHP · 281 lines
1 <?php
2 require_once 'Request.abstract.php';
3 require_once 'Destination.class.php';
5 class HttpRequest extends Request {
37 protected function undoQuotes(&$value, $key) {
38 $value = stripslashes($value);
39 }
56 } elseif (isset($_SERVER['REQUEST_URI'])) {
57 $requestUri = $_SERVER['REQUEST_URI'];
58 } elseif (isset($_SERVER['ORIG_PATH_INFO'])) { // IIS 5.0, PHP as CGI
59 $requestUri = $_SERVER['ORIG_PATH_INFO'];
60 if (!empty($_SERVER['QUERY_STRING'])) {
Libupload.php (https://github.com/rat4m3n/pyrocms-shop.git) PHP · 256 lines
mssql-odbc.php (https://github.com/batl/sp.git) PHP · 387 lines
1 <?php
2 /***************************************************************************
3 * mssql-odbc.php
4 * -------------------
5 * begin : Saturday, Feb 13, 2001
6 * copyright : (C) 2001 The phpBB Group
7 * email : support@phpbb.com
8 *
9 * $Id: mssql-odbc.php 2380 2002-03-20 17:48:30Z psotfx $
10 *
11 ***************************************************************************/
139 for($j = 0; $j < count($this->field_names[$this->result]); $j++)
140 {
141 $this->result_rowset[$this->result][$row_inner][$this->field_names[$this->result][$j]] = stripslashes(odbc_result($this->result, $j + 1));
142 }
crop-avatar.php (https://gitlab.com/oytunistrator/cropper) PHP · 197 lines
1 <?php
2 class CropAvatar {
3 private $src;
33 private function setData($data) {
34 if (!empty($data)) {
35 $this -> data = json_decode(stripslashes($data));
36 }
37 }
144 switch ($code) {
145 case UPLOAD_ERR_INI_SIZE:
146 $message = 'The uploaded file exceeds the upload_max_filesize directive in php.ini';
147 break;
runtime.php (https://bitbucket.org/pauver/dirty-bastards.git) PHP · 241 lines
1 <?php
2 include(PERCH_CORE.'/apps/content/PerchContent_Regions.class.php');
3 include(PERCH_CORE.'/apps/content/PerchContent_Region.class.php');
4 include(PERCH_CORE.'/apps/content/PerchContent_Items.class.php');
5 include(PERCH_CORE.'/apps/content/PerchContent_Item.class.php');
6 include(PERCH_CORE.'/apps/content/PerchContent_Pages.class.php');
7 include(PERCH_CORE.'/apps/content/PerchContent_Page.class.php');
8 include(PERCH_CORE.'/apps/content/PerchContent.class.php');
13 {
14 if ($key === false) {
15 echo 'You must pass in a <em>name</em> for the content. e.g. <code style="color: navy;background: white;"><' . '?php perch_content(\'Phone number\'); ?' . '></code>';
16 }
database.php (https://github.com/nicocode/BlaBlub.git) PHP · 293 lines
1 <?
2 /**
3 * Database.php
4 *
5 * The Database class is meant to simplify the task of accessing
9 * Last Updated: August 17, 2004
10 */
11 include("constants.php");
13 class MySQLDB
64 /* Retrieve password from result, strip slashes */
65 $dbarray = mysql_fetch_array($result);
66 $dbarray['password'] = stripslashes($dbarray['password']);
67 $password = stripslashes($password);
99 /* Retrieve userid from result, strip slashes */
100 $dbarray = mysql_fetch_array($result);
101 $dbarray['userid'] = stripslashes($dbarray['userid']);
102 $userid = stripslashes($userid);
view.php (https://gitlab.com/ppapadatis/Videolearn) PHP · 114 lines
16 ?>
18 <div id="gkIs-<?php echo $this->config['module_id'];?>" class="gkIsWrapper-gk_black_and_white<?php if($this->config['config']->gk_black_and_white->gk_black_and_white_slide_links == 1) echo ' slide-links'; ?>">
20 <div class="gkIsPreloader">Loading...</div>
22 <div class="gkIsSlides" style="width: <?php echo $width; ?>px;height: <?php echo $height; ?>px;">
23 <?php for($i = 0; $i < count($this->config['image_show_data']); $i++) : ?>
40 <?php if($this->config['config']->gk_black_and_white->gk_black_and_white_show_text_block == 1) : ?>
41 <div class="gkIsText" style="bottom:<?php echo $this->config['config']->gk_black_and_white->gk_black_and_white_text_block_position_y; ?>px;right:<?php echo $this->config['config']->gk_black_and_white->gk_black_and_white_text_block_position_x; ?>px;width:<?php echo $this->config['config']->gk_black_and_white->gk_black_and_white_text_block_width; ?>px;">Text</div>
42 <?php endif; ?>
100 <?php else : ?>
101 <h4><a href="<?php echo $link; ?>" class="gkToRemove"><?php echo $title; ?></a></h4>
102 <?php endif; ?>
widgets.php (https://github.com/OccupyWallStreet/nycga2.git) PHP · 206 lines
80 ?>
82 <p><label><?php _e('Title:','nycga-group-files'); ?></label><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
84 <?php if( NYCGA_GROUP_FILES_WIDGET_GROUP_FILTER ) { ?>
100 <?php } ?>
102 <p><label><?php _e( 'Number of items to show:', 'nycga-group-files' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'num_items' ); ?>" name="<?php echo $this->get_field_name( 'num_items' ); ?>" type="text" value="<?php echo esc_attr( $num_items ); ?>" style="width: 30%" /></p>
104 <?php
180 ?>
182 <p><label><?php _e('Title:','nycga-group-files'); ?></label><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
184 <?php if( NYCGA_GROUP_FILES_WIDGET_GROUP_FILTER ) { ?>
200 <?php } ?>
202 <p><label><?php _e( 'Number of items to show:', 'nycga-group-files' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'num_items' ); ?>" name="<?php echo $this->get_field_name( 'num_items' ); ?>" type="text" value="<?php echo esc_attr( $num_items ); ?>" style="width: 30%" /></p>
203 <?php
admin-setup.php (https://github.com/fauverism/swatch-remix.git) PHP · 308 lines
1 <?php
3 /*-------------------------------------------------------------------------------------
31 function woo_themeoptions_redirect () {
32 // Do redirect
33 header( 'Location: ' . admin_url() . 'admin.php?page=woothemes' );
34 } // End woo_themeoptions_redirect()
48 global $pagenow;
50 if ( is_admin() && isset( $_GET['activated'] ) && $pagenow == 'themes.php' ) {
51 // Call action that sets.
52 add_action( 'admin_head','woo_option_setup' );
255 echo "<!-- Options Panel Custom CSS -->\n";
256 $output = "<style type=\"text/css\">\n" . $output . "</style>\n\n";
257 echo stripslashes( $output );
258 }
options-home.php (https://github.com/jedverity/m2m.git) PHP · 131 lines
1 <?php
2 if (isset($_POST['info_update']))
3 {
46 {
47 echo '<div class="wrap">';
48 echo '<form method="post" action="admin.php?page=architect-home" enctype="multipart/form-data">';
50 echo architect_admin_header('2', 'Wapple Architect Home Page Settings');
116 // Older articles link
117 echo architect_admin_option('input', array('size' => 10, 'label' => 'Older articles link', 'name' => 'architect_home_olderposts', 'value' => stripslashes(get_option('architect_home_olderposts')), 'description' => 'User defined older links on homepage'));
119 // Newer articles link
120 echo architect_admin_option('input', array('size' => 10, 'label' => 'Newer articles link', 'name' => 'architect_home_newerposts', 'value' => stripslashes(get_option('architect_home_newerposts')), 'description' => 'User defined newer links on homepage'));
121 echo architect_admin_option('input', array('size' => 10, 'label' => 'Read more link', 'name' => 'architect_home_readmore', 'value' => stripslashes(get_option('architect_home_readmore')), 'description' => 'User defined "read more" link on homepage'));
EchoExtension.php (https://github.com/damienalexandre/AdmingeneratorGeneratorBundle.git) PHP · 234 lines
1 <?php
3 namespace Admingenerator\GeneratorBundle\Twig\Extension;
46 {
47 return array(
48 'as_php' => new \Twig_Filter_Method($this, 'asPhp'),
49 'convert_as_form' => new \Twig_Filter_Method($this, 'convertAsForm'),
50 );
56 * eg type option for collection type
57 *
58 * @param string $options the string as php
59 * @param string $formType the form type
60 *
68 if (count($matches) > 0) {
69 $options = str_replace("'type' => '".$matches[1]."'", '\'type\' => new '.stripslashes($matches[1]).'()', $options);
70 }
71 }
update.php (https://gitlab.com/endomorphosis/reservationtelco) PHP · 253 lines
1 <?php
2 /**
3 * Update/Install Plugin/Theme administration panel.
9 /** WordPress Administration Bootstrap */
10 require_once('./admin.php');
12 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
25 if ( isset( $_GET['plugins'] ) )
26 $plugins = explode( ',', stripslashes($_GET['plugins']) );
27 elseif ( isset( $_POST['checked'] ) )
28 $plugins = (array) $_POST['checked'];
32 $plugins = array_map('urldecode', $plugins);
34 $url = 'update.php?action=update-selected&plugins=' . urlencode(implode(',', $plugins));
35 $nonce = 'bulk-update-plugins';
woocommerce.php (https://gitlab.com/Suhailgit/Project) PHP · 119 lines
11 <div id="my-woocommerce" class="tab-content">
12 <div class="bpanel-box">
13 <?php if( class_exists('woocommerce') ) : ?>
15 <!-- SHOP PAGE -->
19 <div class="column one-third"><label><?php _e('Products Per Page','iamd_text_domain');?></label></div>
20 <div class="column two-third last">
21 <input name="mytheme[woo][shop-product-per-page]" type="text" class="small" value="<?php echo trim(stripslashes(dt_theme_option('woo','shop-product-per-page')));?>" />
22 <p class="note"><?php _e('Number of porducts to show in catalog / shop page','iamd_text_domain');?></p>
60 endforeach; ?>
61 </ul>
62 <input name="mytheme[woo][product-layout]" type="hidden" value="<?php echo $v;?>"/>
63 </div><!-- Product Detail Page Layout End-->
64 </div><!-- Product Page -->
105 endforeach; ?>
106 </ul>
107 <input name="mytheme[woo][product-tag-layout]" type="hidden" value="<?php echo $v;?>"/>
108 </div><!-- Product Detail Page Layout End-->
abstract.php (https://github.com/luthercollege/reason_package.git) PHP · 321 lines
1 <?php
2 /**
3 * @package reason
8 * Register controller with Reason
9 */
10 $GLOBALS[ '_form_controller_class_names' ][ basename( __FILE__, '.php') ] = 'AbstractFormController';
12 /**
64 if (empty($request) && !empty($cleanup_rules))
65 {
66 $unclean_request = conditional_stripslashes($_REQUEST);
67 $request = carl_clean_vars($unclean_request, $cleanup_rules);
68 $this->set_request($request);
wiki_page.class.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 431 lines
1 <?php
2 //$Id: wiki_page.class.php,v 1.22 2008/03/14 13:12:46 gonzaloserrano Exp $
9 * @author David Castro, Ferran Recio, Jordi Piguillem, UPC,
10 * and members of DFWikiteam listed at http://morfeo.upc.edu/crom
11 * @version $Id: wiki_page.class.php,v 1.22 2008/03/14 13:12:46 gonzaloserrano Exp $
12 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
13 * @package Core
14 */
16 require_once ($CFG->dirroot.'/lib/dmllib.php');
17 require_once ($CFG->dirroot.'/mod/wiki/locallib.php');
141 */
142 function page_name(){
143 return stripslashes($this->pagename);
144 }
admin.php (https://github.com/konscript/aquestionof.git) PHP · 174 lines
62 </th>
63 <td>
64 <input type='radio' value='0' name='wpsc_options[wpsc_check_mime_types]' id='wpsc_check_mime_types2' <?php echo $wpsc_check_mime_types1; ?> /> <label for='wpsc_check_mime_types2'><?php _e('Yes', 'wpsc');?></label>
65 <input type='radio' value='1' name='wpsc_options[wpsc_check_mime_types]' id='wpsc_check_mime_types1' <?php echo $wpsc_check_mime_types2; ?> /> <label for='wpsc_check_mime_types1'><?php _e('No', 'wpsc');?></label><br />
134 <th><strong><?php _e('Admin Report', 'wpsc');?></strong></th>
135 <td><textarea name="wpsc_options[wpsc_email_admin]" cols='' rows='' style='width: 300px; height: 200px;'><?php esc_attr_e( stripslashes(get_option('wpsc_email_admin') ) );?></textarea></td>
136 </tr>
137 </table>
149 <th><strong><?php _e('Tracking Email Subject', 'wpsc');?></strong></th>
150 <td><input name="wpsc_options[wpsc_trackingid_subject]" type='text' value='<?php esc_attr_e( stripslashes(get_option('wpsc_trackingid_subject') ) );?>' /></td>
151 </tr>
152 <tr>
153 <th><strong><?php _e('Tracking Email Message', 'wpsc');?></strong></th>
154 <td><textarea name="wpsc_options[wpsc_trackingid_message]" cols='' rows='' style='width: 300px; height: 200px;'><?php esc_attr_e( stripslashes(get_option('wpsc_trackingid_message') ) );?></textarea></td>
155 </tr>
156 </table>
permission.php (https://github.com/acavedon/pAdmin.git) PHP · 237 lines
40 {
41 // string's fix
42 $varStrNameUser = stripslashes($varStrNameUser);
44 $varBgColor = ($varContador%2) ? "#ffffcc" : "#ffffff";
47 $varContent .= " <td width=\"100%\">\n";
48 $varContent .= " <strong>\n";
49 $varContent .= " <a href=\"javascript:executar('view','$varCodPermission','permission-view.php')\">\n";
50 $varContent .= " $varStrNameUser\n";
51 $varContent .= " </a>\n";
53 $varContent .= " </td>\n";
54 $varContent .= " <td align=\"center\" class=\"nobr\">\n";
55 $varContent .= " <a href=\"javascript:executar('edit','$varCodPermission','permission-edit.php')\" class=\"edtButton\">\n";
56 $varContent .= " <img src=\"../images/admin/icons/edit.png\" width=\"16\" height=\"15\" border=\"0\" />\n";
57 $varContent .= " Edit\n";
RCCWP_Post.php (https://github.com/chuyskywalker/Magic-Fields.git) PHP · 233 lines
1 <?php
3 class RCCWP_Post
75 {
76 list($customFieldId, $groupCounter, $fieldCounter, $groupId, $rawCustomFieldName) = split("_", $key, 5);
77 $customFieldName = $wpdb->escape(stripslashes(trim(RC_Format::GetFieldName($rawCustomFieldName))));
78 delete_post_meta($postId, $customFieldName);
79 }
114 $customFieldValue = $_POST[$key->ov];
116 $customFieldName = $wpdb->escape(stripslashes(trim(RC_Format::GetFieldName($key->fn))));
118 // Prepare field value
122 foreach ($customFieldValue as $value)
123 {
124 $value = stripslashes(trim($value));
125 array_push($finalValue, $value);
126 }
postsbyimage-options.php (https://github.com/freerobby/postsbyimage.git) PHP · 177 lines
121 Generated images will be stored on your server in the directory below.
122 <br />
123 <input type="text" name="cachepath" value="<?php echo stripslashes ( get_option ( 'ds_pbi_cachepath' ) ); ?>" size="<?php echo strlen ( stripslashes ( get_option ( 'ds_pbi_cachepath' ) ) ); ?>" />
124 <br />
125 </p>
131 Images stored in your cache are accessible in the URL specified below.
132 <br />
133 <input type="text" name="cacheurl" value="<?php echo stripslashes ( get_option ( 'ds_pbi_cacheurl' ) ); ?>" size="<?php echo strlen ( stripslashes ( get_option ( 'ds_pbi_cacheurl' ) ) ); ?>" />
134 </p>
142 <p>
143 Number of columns in your display table:
144 <input type="text" name="defaultcols" value="<?php echo stripslashes ( get_option ( 'ds_pbi_defaultcols' ) ); ?>" size="3" />
145 </p>
146 <h3>
index.php (https://gitlab.com/alidzapp/gamerz-file-explorer) PHP · 194 lines
116 }
117 ?>
118 <?php template_header( ! empty( $current_directory_name ) ? ' - Viewing Directory - ' . $current_directory_name : '' ); ?>
120 <!-- List Directories/Files -->
125 <th style="width: 50%;" onclick="parent.location.href='<?php echo create_sort_url( 'name' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Name">Name <?php echo create_sort_image( 'name' ); ?></th>
126 <th style="width: 10%;" onclick="parent.location.href='<?php echo create_sort_url( 'size' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Size">Size <?php echo create_sort_image( 'size' ); ?></th>
127 <th style="width: 20%;" onclick="parent.location.href='<?php echo create_sort_url( 'type' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Type">Type <?php echo create_sort_image( 'type' ); ?></th>
128 <th style="width: 20%;" onclick="parent.location.href='<?php echo create_sort_url( 'date' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Date">Date <?php echo create_sort_image( 'date' ); ?></th>
129 </tr>
130 </thead>
186 <td><strong><?php echo $total_folders_files; ?></strong></td>
187 <td><strong><?php echo $total_size; ?></strong></td>
188 <td>-</td>
189 <td>-</td>
Body.php (https://github.com/usagi-project/mynets1.git) PHP · 335 lines
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4: */
3 // +----------------------------------------------------------------------+
4 // | PEAR :: Mail :: Queue :: Body |
5 // +----------------------------------------------------------------------+
6 // | Copyright (c) 1997-2004 The PHP Group |
7 // +----------------------------------------------------------------------+
8 // | This source file is subject to version 3.0 of the PHP license, |
9 // | that is bundled with this package in the file LICENSE, and is |
10 // | available at through the world-wide-web at |
11 // | http://www.php.net/license/3_0.txt. |
12 // | If you did not receive a copy of the PHP license and are unable to |
13 // | obtain it through the world-wide-web, please send a note to |
14 // | license@php.net so we can mail you a copy immediately. |
15 // +----------------------------------------------------------------------+
16 // | Authors: Radek Maciaszek <chief@php.net> |
class_cache.php (https://gitlab.com/elasa/vb-elasa.ir) PHP · 254 lines
1 <?php
2 /*======================================================================*\
3 || #################################################################### ||
172 // Strip the slashes
173 self::$vbulletin->input->stripslashes_deep($data);
175 // Set the data
181 {
182 // Do unserialize
183 LIVEWALL::$cache["$field_short"]["$id"]["$key"] = @unserialize(stripslashes($arr["$key"]));
184 }
185 }
237 {
238 // Strip the slashes
239 self::$vbulletin->input->stripslashes_deep($data);
241 // Unset from the vbulletin array to save memory
transformations.lib.php (https://github.com/BenBE/ispCP.git) PHP · 246 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Set of functions used with the relation and pdf feature
5 *
6 * @package phpMyAdmin
7 */
27 * @uses strlen()
28 * @uses substr()
29 * @uses stripslashes()
30 * @param string $option_string comma separated options
31 * @return array options
61 $option = substr($rtrimmed, 1, -1);
62 }
63 $result[] = stripslashes($option);
64 }
date.php (https://bitbucket.org/rossberenson/michael-karas.git) PHP · 201 lines
165 <input type="text" name="id" class="idvalue oneline option" /></td>
167 <td><code>class</code> (<?php echo esc_html( __( 'optional', 'wpcf7' ) ); ?>)<br />
168 <input type="text" name="class" class="classvalue oneline option" /></td>
169 </tr>
184 <tr>
185 <td><?php echo esc_html( __( 'Default value', 'wpcf7' ) ); ?> (<?php echo esc_html( __( 'optional', 'wpcf7' ) ); ?>)<br /><input type="text" name="values" class="oneline" /></td>
187 <td>
191 </table>
193 <div class="tg-tag"><?php echo esc_html( __( "Copy this code and paste it into the form left.", 'wpcf7' ) ); ?><br /><input type="text" name="<?php echo $type; ?>" class="tag" readonly="readonly" onfocus="this.select()" /></div>
195 <div class="tg-mail-tag"><?php echo esc_html( __( "And, put this code into the Mail fields below.", 'wpcf7' ) ); ?><br /><span class="arrow">⬇</span> <input type="text" class="mail-tag" readonly="readonly" onfocus="this.select()" /></div>
meta-box-saves.inc.php (https://gitlab.com/Gashler/sg) PHP · 147 lines
1 <?php
2 /**
3 * Meta box saves.
49 // We do NOT process historical revisions here; because it causes confusion in the General Options panel for s2Member.
50 {
51 $_p = /* Clean and create a local copy. */ c_ws_plugin__s2member_utils_strings::trim_deep (stripslashes_deep ($_POST));
53 if (($_p["post_type"] === "page" && current_user_can ("edit_page", $post_id)) || current_user_can ("edit_post", $post_id))
textarea.php (https://github.com/electricjesus/dragonfood.git) PHP · 172 lines
132 <form action="">
133 <table>
134 <tr><td><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field?', 'wpcf7' ) ); ?></td></tr>
135 <tr><td><?php echo esc_html( __( 'Name', 'wpcf7' ) ); ?><br /><input type="text" name="name" class="tg-name oneline" /></td><td></td></tr>
138 <table>
139 <tr>
140 <td><code>id</code> (<?php echo esc_html( __( 'optional', 'wpcf7' ) ); ?>)<br />
141 <input type="text" name="id" class="idvalue oneline option" /></td>
147 <tr>
148 <td><code>cols</code> (<?php echo esc_html( __( 'optional', 'wpcf7' ) ); ?>)<br />
149 <input type="text" name="cols" class="numeric oneline option" /></td>
155 <tr>
156 <td><?php echo esc_html( __( 'Default value', 'wpcf7' ) ); ?> (<?php echo esc_html( __( 'optional', 'wpcf7' ) ); ?>)<br /><input type="text" name="values" class="oneline" /></td>
158 <td>
quiz-maker-quizes-actions-tab5.php (https://github.com/livinglab/openlab.git) PHP · 480 lines
1 <div id="tab5" class="ays-quiz-tab-content <?php echo ($ays_quiz_tab == 'tab5') ? 'ays-quiz-tab-content-active' : ''; ?>">
2 <p class="ays-subtitle"><?php echo __('Limitation of Users',$this->plugin_name)?></p>
5 <div class="col-sm-3">
6 <label for="ays_limit_users">
7 <?php echo __('Maximum number of attempts per user',$this->plugin_name)?>
8 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('After enabling this option, you can manage the counts of the attempts per user for passing the quiz.',$this->plugin_name)?>">
13 <div class="col-sm-1">
14 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_limit_users" name="ays_limit_users"
15 value="on" <?php echo (isset($options['limit_users']) && $options['limit_users'] == 'on') ? 'checked' : ''; ?>/>
16 </div>
17 <div class="col-sm-8 ays_toggle_target ays_divider_left <?php echo (isset($options['limit_users']) && $options['limit_users'] == "on") ? "" : "display_none" ?>">
23 <?php echo __('Detects users by',$this->plugin_name)?>
24 <a class="ays_help" data-toggle="tooltip" data-html="true" title="<?php echo __('Choose the method of detection of the user.',$this->plugin_name)?><br><?php echo __('If you choose \'User ID\', the \'Limit users\' option will not work for the not logged in users. It works only with \'Only for logged in users\' option.',$this->plugin_name)?>">
25 <i class="ays_fa ays_fa_info_circle"></i>
26 </a>
tags.class.php (https://github.com/fatjonakroni/pmb-albania.git) PHP · 140 lines
1 <?php
2 // +-------------------------------------------------+
3 // 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
5 // repris et corrig par PMB Services
6 // +-------------------------------------------------+
7 // $Id: tags.class.php,v 1.10 2009-06-17 12:50:08 kantin Exp $
9 // dfinition de la classe d'affichage des 'tags'
67 $reponse.="<br /><br />";
68 } else $reponse.=", ";
69 if ($value<$seuil1) $reponse.="<a href='./index.php?lvl=more_results&mode=keyword&user_query=".urlencode($key)."&tags=ok' class='TagF1'>$key</a> ";
70 elseif ($value<$seuil2) $reponse.="<a href='./index.php?lvl=more_results&mode=keyword&user_query=".urlencode($key)."&tags=ok' class='TagF2'>$key</a> ";
71 elseif ($value<$seuil3) $reponse.="<a href='./index.php?lvl=more_results&mode=keyword&user_query=".urlencode($key)."&tags=ok' class='TagF3'>$key</a> ";
72 else $reponse.="<a href='./index.php?lvl=more_results&mode=keyword&user_query=".urlencode($key)."&tags=ok' class='TagF4'>$key</a> ";
admin_model.php (https://github.com/mwq27/turnerphotography.git) PHP · 202 lines
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
3 class Admin_model extends CI_Model {
7 if(!is_numeric($data) && $data != ""){
9 $safe_data = mysql_real_escape_string(htmlentities(stripslashes(trim($data)), ENT_QUOTES, 'UTF-8')) or die(mysql_error());
10 return $safe_data;
11 }else return $data;
setting_admin_general.php (https://bitbucket.org/gfelizola/pacaembu-institucional.git) PHP · 183 lines
56 <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
57 <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Not notified' , $this->ltd ); ?></label>
58 </td>
59 </tr>
100 <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
101 <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
102 </td>
103 </tr>
146 <?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
147 <input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text" id="<?php echo $field; ?>">
148 <a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Variables' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a>
159 <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
160 <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Remove "Wordpress" from the title tag of the Admin screen' , $this->ltd ); ?></label>
161 </td>
162 </tr>
inform_bm_admin.php (https://github.com/fadlisaad/E-Latihan-Admin.git) PHP · 190 lines
138 <tr>
139 <td> </td>
140 <td><?php echo $row_public_form['first_name']; ?> <?php echo $row_public_form['last_name']; ?></td>
141 </tr>
142 <tr>
143 <td> </td>
144 <td> <?php echo $row_public_form['address1']; ?> <?php echo $row_public_form['address2']; ?></td>
145 </tr>
146 <tr>
147 <td> </td>
148 <td> <?php echo $row_public_form['postal_code']; ?> <?php echo $row_public_form['city']; ?></td>
149 </tr>
150 <tr>
superglobal.php (https://github.com/rynodivino/system.git) PHP · 265 lines
mysql.database.class.php (https://github.com/mkpeacock/Talk-Rating--twilio-.git) PHP · 273 lines
1 <?php
2 /**
3 * Ickle MVC MySQL Database Library
240 public function sanitizeData( $value )
241 {
242 // Stripslashes
243 if ( get_magic_quotes_gpc() )
244 {
245 $value = stripslashes ( $value );
246 }
248 // Quote value
249 if ( version_compare( phpversion(), "4.3.0" ) == "-1" )
250 {
251 $value = $this->connections[$this->activeConnection]->escape_string( $value );
cats.php (https://github.com/livinglab/openlab.git) PHP · 69 lines
11 <?php endif;?>
13 <p><?php printf(__('Categories can be used to organize your %s by topic. The most useful part of this is that you can limit the access to categories for the different', 'watupro'), WATUPRO_QUIZ_WORD_PLURAL)?> <a href="admin.php?page=watupro_groups"><?php _e('user groups', 'watupro')?></a>.</p>
15 <p><a href="admin.php?page=watupro_cats&do=add&parent_id=<?php echo $parent_id?>"><?php _e('Click here to add new category', 'watupro')?></a></p>
18 <table class="widefat watupro-table">
19 <thead>
20 <tr><th><?php _e('ID', 'watupro')?></th><th><?php _e('Category Name', 'watupro')?></th><th><?php printf(__('Shortcode for %s list', 'watupro'), WATUPRO_QUIZ_WORD_PLURAL)?></th>
21 <?php if(empty($parent->ID)):?>
33 <?php if(empty($parent->ID)):?>
34 <td><a href="admin.php?page=watupro_cats&parent_id=<?php echo $cat->ID?>"><?php _e('Manage', 'watupro');?></a></td>
35 <?php endif;?>
36 <td><?php echo $cat->allowed_to;?></td>
37 <td><a href="admin.php?page=watupro_cats&do=edit&id=<?php echo $cat->ID?>&parent_id=<?php echo $parent_id?>"><?php _e('Edit', 'watupro')?></a></td></tr>
38 <?php endforeach;?>
41 <?php else:?>
42 <p><?php _e('You have not created any categories yet.', 'watupro')?> <a href="admin.php?page=watupro_cats&do=add&parent_id=<?php echo $parent_id?>"><?php _e('Click here', 'watupro')?></a> <?php _e('to create one.', 'watupro')?></p>
43 <?php endif;?>
comment.php (https://bitbucket.org/lordmuffin/origin.git) PHP · 158 lines
Standard.php (https://github.com/TheOnly92/Ikariem.git) PHP · 216 lines
1 <?php
3 class EZ_View_Smarty_Plugin_Standard extends EZ_View_Smarty_Plugin_Abstract {
137 */
138 public static function tBlock($params, $text, &$smarty) {
139 $text = stripslashes ( $text );
141 // set escape mode
176 case 'js' :
177 // javascript escape
178 $text = str_replace ( '\'', '\\\'', stripslashes ( $text ) );
179 break;
180 case 'url' :
Input.php (https://github.com/fluctusz/P21.git) PHP · 284 lines
1 <?php
3 /**
50 public function __set($key, $value) {
51 if(is_string($value) && $this->stripSlashes) $value = stripslashes($value);
52 if(is_array($value)) $value = $this->cleanArray($value);
53 $this->data[$key] = $value;
58 foreach($a as $key => $value) {
59 if(is_array($value)) continue; // we only allow one dimensional arrays
60 if(is_string($value) && $this->stripSlashes) $value = stripslashes($value);
61 $clean[$key] = $value;
62 }
64 }
66 public function setStripSlashes($stripSlashes) {
67 $this->stripSlashes = $stripSlashes ? true : false;
widget-recent.php (https://gitlab.com/billyprice1/website) PHP · 175 lines
113 $sizes = $this->get_sizes();
114 ?>
115 <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', TEMPLATENAME) ?></label><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
116 <p><label for="<?php echo $this->get_field_id('posts_count'); ?>"><?php _e('Number of posts to show:', TEMPLATENAME) ?></label><input class="widefat" id="<?php echo $this->get_field_id('posts_count'); ?>" name="<?php echo $this->get_field_name('posts_count'); ?>" type="text" value="<?php echo $posts_count; ?>" /></p>
128 </select></p>
129 <p>
130 <input id="<?php echo $this->get_field_id('show_thumbnail'); ?>" name="<?php echo $this->get_field_name('show_thumbnail'); ?>" type="checkbox" <?php checked($show_thumbnail); ?> /> <label for="<?php echo $this->get_field_id('show_thumbnail'); ?>"><?php _e('Show post thumbnail?', TEMPLATENAME); ?></label>
131 </p>
132 <p>
142 </select></p>
143 <p>
144 <input id="<?php echo $this->get_field_id('show_excerpt'); ?>" name="<?php echo $this->get_field_name('show_excerpt'); ?>" type="checkbox" <?php checked($show_excerpt); ?> /> <label for="<?php echo $this->get_field_id('show_excerpt'); ?>"><?php _e('Show post excerpt?', TEMPLATENAME); ?></label>
145 </p>
146 <p><label for="<?php echo $this->get_field_id('excerpt_length'); ?>"><?php _e('Excerpt length:', TEMPLATENAME) ?></label><input class="widefat" id="<?php echo $this->get_field_id('excerpt_length'); ?>" name="<?php echo $this->get_field_name('excerpt_length'); ?>" type="text" value="<?php echo $excerpt_length; ?>" /></p>
147 <p>
148 <input id="<?php echo $this->get_field_id('show_date'); ?>" name="<?php echo $this->get_field_name('show_date'); ?>" type="checkbox" <?php checked($show_date); ?> /> <label for="<?php echo $this->get_field_id('show_date'); ?>"><?php _e('Show post date?', TEMPLATENAME); ?></label>
149 </p>
150 <?php
EmailAddressValidator.php (https://github.com/KenBoyer/CompactCMS.git) PHP · 181 lines
1 <?php
3 /*
5 EmailAddressValidator Class
6 http://code.google.com/p/php-email-address-validation/
8 Released under New BSD license
9 http://www.opensource.org/licenses/bsd-license.php
11 Sample Code
31 // the next three lines will allow for this issue.
32 //if (get_magic_quotes_gpc()) {
33 // $strEmailAddress = stripslashes($strEmailAddress);
34 //}
newsController.class.php (https://bitbucket.org/Kadet/pipecms.git) PHP · 216 lines
1 <?php
2 class newsController extends controller
3 {
200 $news->added = time();
201 $news->views = 0;
202 $news->content = BBcode::parse((!isset($data['html']) ? stripslashes($data['content']) : htmlspecialchars($data['content'])));
203 $news->title = $data['title'];
204 $news->author = new stdClass();
config_instance.html (https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git) HTML · 188 lines
1 <?php // $Id$ //
2 require_once($CFG->libdir .'/rsslib.php');
16 }
18 include('config_instance_tabs.php');
20 if ($currentaction == 'configblock') {
24 <tr valign="top">
25 <td class="label">
26 <?php print_string('displaydescriptionlabel', 'block_rss_client') ?>
27 </td>
28 <td class="value">
29 <?php
30 if(! isset($CFG->block_rss_client_display_description) ) {
31 $CFG->block_rss_client_display_description = '0';
lmbHttpCache.class.php (https://github.com/kugu/limb.git) PHP · 206 lines
1 <?php
2 /*
3 * Limb PHP Framework
7 * @license LGPL http://www.gnu.org/copyleft/lesser.html
8 */
9 //inspired by http://alexandre.alapetite.net/doc-alex/php-http-304/
11 /**
13 *
14 * @package net
15 * @version $Id: lmbHttpCache.class.php 7486 2009-01-26 19:13:20Z pachanga $
16 */
17 class lmbHttpCache
62 if (isset($_SERVER['HTTP_IF_MATCH'])) //rfc2616-sec14.html#sec14.24
63 {
64 $etag_client = stripslashes($_SERVER['HTTP_IF_MATCH']);
65 return (($etag_client != '*') && (strpos($etag_client, $this->getEtag()) === false));
66 }
ldaplib_test.php (https://github.com/vadimonus/moodle.git) PHP · 169 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
19 *
20 * @package core
21 * @category phpunit
22 * @copyright Damyon Wiese, Iñaki Arenaza 2014
23 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
28 global $CFG;
29 require_once($CFG->libdir . '/ldaplib.php');
31 class core_ldaplib_testcase extends advanced_testcase {
76 }
78 public function test_ldap_stripslashes() {
79 // See http://tools.ietf.org/html/rfc4514#section-5.2 if you want
80 // to add additional tests.
7.tpl (https://github.com/churchillyik/TRSimu.git) Smarty Template · 484 lines
1 <?php
2 $dataarray = explode(",", $message->readingNotice['data']);
3 ?>
6 <tr>
7 <th>主题:</th>
8 <th><?php echo $message->readingNotice['topic']; ?></th>
9 </tr>
10 <tr>
25 <td class="role">攻击方</td>
26 <td colspan="10">
27 <a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>">
28 <?php echo $database->getUserField($dataarray[0],"username",0); ?></a> 来自于村庄
29 <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>">
30 <?php echo $database->getVillageField($dataarray[1],"name"); ?></a>
csv.php (https://github.com/BenBE/ispCP.git) PHP · 235 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * @package phpMyAdmin-Export-CSV
5 */
6 if (! defined('PHPMYADMIN')) {
170 for ($i = 0; $i < $fields_cnt; $i++) {
171 if ($csv_enclosed == '') {
172 $schema_insert .= stripslashes(PMA_DBI_field_name($result, $i));
173 } else {
174 $schema_insert .= $csv_enclosed
175 . str_replace($csv_enclosed, $csv_escaped . $csv_enclosed, stripslashes(PMA_DBI_field_name($result, $i)))
176 . $csv_enclosed;
177 }
meta.php (https://bitbucket.org/murtuza88/carolina-home-stone.git) PHP · 906 lines
1 <?php
2 /**
3 * Metadata API
45 // expected_slashed ($meta_key)
46 $meta_key = stripslashes($meta_key);
47 $meta_value = stripslashes_deep($meta_value);
116 // expected_slashed ($meta_key)
117 $meta_key = stripslashes($meta_key);
118 $passed_value = $meta_value;
119 $meta_value = stripslashes_deep($meta_value);
197 $id_column = 'user' == $meta_type ? 'umeta_id' : 'meta_id';
198 // expected_slashed ($meta_key)
199 $meta_key = stripslashes($meta_key);
200 $meta_value = stripslashes_deep($meta_value);
settings.php (https://bitbucket.org/akeda/bmw-id-hris.git) PHP · 180 lines
1 <?php
2 /**
3 * Creates and handles all of the functionality needed for the 'Members Settings' page in the WordPress admin.
27 /* Add Members settings page. */
28 $members->settings_page = add_submenu_page( 'options-general.php', esc_attr__( 'Members Settings', 'members' ), esc_attr__( 'Members', 'members' ), apply_filters( 'members_settings_capability', 'manage_options' ), 'members-settings', 'members_settings_page' );
30 /* Add media for the settings page. */
56 function members_settings_page_add_meta_boxes() {
57 global $members;
58 $plugin_data = get_plugin_data( MEMBERS_DIR . 'members.php' );
59 do_action( 'add_meta_boxes', $members->settings_page, $plugin_data );
60 }
66 */
67 function members_settings_page_load_meta_boxes() {
68 require_once( MEMBERS_ADMIN . 'meta-box-plugin-settings.php' );
69 }
bp-activity-notifications.php (https://bitbucket.org/Red54/dianjihun.git) PHP · 238 lines
1 <?php
3 /**
66 $settings_link = bp_core_get_user_domain( $receiver_user_id ) . $settings_slug . '/notifications/';
68 $poster_name = stripslashes( $poster_name );
69 $content = bp_activity_filter_kses( strip_tags( stripslashes( $activity->content ) ) );
157 $settings_link = bp_core_get_user_domain( $original_activity->user_id ) . $settings_slug . '/notifications/';
159 $poster_name = stripslashes( $poster_name );
160 $content = bp_activity_filter_kses( stripslashes($content) );
209 $subject = bp_get_email_subject( array( 'text' => sprintf( __( '%s replied to one of your comments', 'buddypress' ), $poster_name ) ) );
211 $poster_name = stripslashes( $poster_name );
212 $content = bp_activity_filter_kses( stripslashes( $content ) );
status_cats_BU.inc.php (https://github.com/ticketscad/TicketsCAD-Stable-Releases.git) PHP · 208 lines
1 <?php
2 $hide_dispatched = 1; // 0 is standard, disallows hiding of deployed units. 1 allows deployed units to be hidden.
3 $hide_status_groups = get_variable('group_or_dispatch');
19 $result = mysql_query($query) or do_error($query, 'mysql query failed', mysql_error(), basename( __FILE__), __LINE__);
21 while ($row = stripslashes_deep(mysql_fetch_assoc($result))) {
22 if(($row['group']=="") || ($row['group']==NULL) || ($row['group']=="NULL")) {
23 $category_name = "?";
41 global $hide_status_groups, $hide_dispatched;
42 $status_category="";
43 require_once('mysql.inc.php');
44 if($hide_status_groups == 0) {
45 $query = "SELECT `$GLOBALS[mysql_prefix]responder`.`id`,`$GLOBALS[mysql_prefix]assigns`.`clear`
56 WHERE `$GLOBALS[mysql_prefix]responder`.`id` = $unit";
57 $result = mysql_query($query) or do_error($query, 'mysql query failed', mysql_error(), basename( __FILE__), __LINE__);
58 while ($row = stripslashes_deep(mysql_fetch_array($result))) {
59 $status_id = $row['un_status_id'];
60 $status_hide = $row['hide'];
complete.php (https://gitlab.com/blueprintmrk/bladencountyrecords) PHP · 206 lines
1 <?php
2 require( 'common.php' );
12 }
14 $partial = stripslashes( $_POST['partial'] );
15 if ( hash_hmac( 'sha1', $partial, $secret ) != $_POST['signature'] ) {
16 return;
111 return $m;
112 } else if ( preg_match( '#^:set #', $string ) ) {
113 foreach ( PHP_Shell_Options::getInstance()->getOptions() as $v ) {
114 $m[] = $v;
115 }
140 }
142 /* taken from http://de3.php.net/manual/en/reserved.php */
143 $m[] = 'abstract';
144 $m[] = 'and';
wpmu.php (https://bitbucket.org/murtuza88/carolina-home-stone.git) PHP · 117 lines
1 <?php
2 if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
17 // get the hidden option fields, taken from WP core
18 if ( $_POST['page_options'] )
19 $options = explode(',', stripslashes($_POST['page_options']));
20 if ($options) {
21 foreach ($options as $option) {
47 <div class="wrap">
48 <h2><?php _e('Network Options','nggallery'); ?></h2>
49 <form name="generaloptions" method="post">
50 <?php wp_nonce_field('ngg_wpmu_settings') ?>
52 <table class="form-table">
53 <tr valign="top">
54 <th align="left"><?php _e('Gallery path','nggallery') ?></th>
55 <td><input type="text" size="50" name="gallerypath" value="<?php echo $ngg_options['gallerypath']; ?>" /><br />
bp-core-schema.php (https://github.com/voidit/nycga2.git) PHP · 300 lines
1 <?php
2 // Exit if accessed directly
3 if ( !defined( 'ABSPATH' ) ) exit;
6 global $wpdb;
8 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
10 /* BuddyPress component DB schema */
265 if ( !$wpdb->get_var( "SELECT id FROM {$bp_prefix}bp_xprofile_groups WHERE id = 1" ) )
266 $insert_sql[] = "INSERT INTO {$bp_prefix}bp_xprofile_groups ( name, description, can_delete ) VALUES ( " . $wpdb->prepare( '%s', stripslashes( bp_get_option( 'bp-xprofile-base-group-name' ) ) ) . ", '', 0 );";
268 if ( !$wpdb->get_var( "SELECT id FROM {$bp_prefix}bp_xprofile_fields WHERE id = 1" ) )
269 $insert_sql[] = "INSERT INTO {$bp_prefix}bp_xprofile_fields ( group_id, parent_id, type, name, description, is_required, can_delete ) VALUES ( 1, 0, 'textbox', " . $wpdb->prepare( '%s', stripslashes( bp_get_option( 'bp-xprofile-fullname-field-name' ) ) ) . ", '', 1, 0 );";
271 dbDelta( $insert_sql );
widgets.php (https://github.com/digitalstrategyworks/Reese-WordPress.git) PHP · 179 lines
56 $title = $instance['title'];
57 ?>
58 <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p>
59 <?php
111 $title = strip_tags($instance['title']);
112 ?>
113 <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></p>
114 <?php
138 <li><a href="<?php bloginfo('rss2_url') ?>" title="<?php echo esc_html(get_bloginfo('name')) ?> <?php _e('Posts RSS feed', 'thematic'); ?>" rel="alternate nofollow" type="application/rss+xml"><?php _e('All posts', 'thematic') ?></a></li>
139 <li><a href="<?php bloginfo('comments_rss2_url') ?>" title="<?php echo esc_html(get_bloginfo('name')) ?> <?php _e('Comments RSS feed', 'thematic'); ?>" rel="alternate nofollow" type="application/rss+xml"><?php _e('All comments', 'thematic') ?></a></li>
140 </ul>
141 <?php
154 $title = strip_tags($instance['title']);
155 ?>
156 <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></p>
157 <?php
api-value.php (https://gitlab.com/sihabudinahmad/asppi) PHP · 372 lines
1 <?php
3 /*
180 // strip slashes
181 // allow 3rd party customisation
182 if( acf_get_setting('stripslashes') )
183 {
184 $value = stripslashes_deep($value);
217 // for some reason, update_option does not use stripslashes_deep.
218 // update_metadata -> http://core.trac.wordpress.org/browser/tags/3.4.2/wp-includes/meta.php#L82: line 101 (does use stripslashes_deep)
219 // update_option -> http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/option.php#L0: line 215 (does not use stripslashes_deep)
220 $value = stripslashes_deep($value);
222 $return = acf_update_option( $post_id . '_' . $field['name'], $value );
content-extensions.php (https://github.com/starbunks/Tito.git) PHP · 1250 lines
1 <?php
3 // Located in 404.php, archive.php, archives.php, attachement.php, author.php, category.php index.php,
4 // links.php, page.php, search.php, single.php, tag.php
19 // Located in 404.php, archive.php, archives.php, attachement.php, author.php, category.php index.php,
20 // links.php, page.php, search.php, single.php, tag.php
34 // Located in archive.php, author.php, category.php, index.php, search.php, single.php, tag.php
35 // Just before the content
36 function thematic_navigation_above() {
169 // Located in 404.php, archive.php, archives.php, attachement.php, author.php, category.php index.php,
170 // links.php, page.php, search.php, single.php, tag.php
BX_functions.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 103 lines
1 <?php
3 /**
15 $posts = $wpdb->get_results("SELECT ID, post_title FROM " . $wpdb->posts . " WHERE post_status='publish' AND post_type='post' ORDER BY post_date DESC LIMIT " . $limit);
16 foreach ($posts as $post) {
17 $post_title = stripslashes($post->post_title);
18 $permalink = get_permalink($post->ID);
19 if ($post->ID != $current_id) echo "<li><a href=\"" . $permalink . "\">" . $post_title . "</a></li>\n";
Status.php (https://gitlab.com/x33n/ImpressPages) PHP · 110 lines
memcache.php (https://github.com/pacoqueen/callao_chico.git) PHP · 210 lines
1 <?php
2 /**
3 * @version $Id:eaccelerator.php 6961 2007-03-15 16:06:53Z tcp $
13 /**
14 * Memcache session storage handler for PHP
15 *
16 * -- Inspired in both design and implementation by the Horde memcache handler --
19 * @subpackage Session
20 * @since 1.5
21 * @see http://www.php.net/manual/en/function.session-set-save-handler.php
22 */
23 class JSessionStorageMemcache extends JSessionStorage
62 if (!is_array($params))
63 {
64 $params = unserialize(stripslashes($params));
65 }
meta.php (https://github.com/netconstructor/WordPress.git) PHP · 861 lines
1 <?php
2 /**
3 * Metadata API
45 // expected_slashed ($meta_key)
46 $meta_key = stripslashes($meta_key);
47 $meta_value = stripslashes_deep($meta_value);
116 // expected_slashed ($meta_key)
117 $meta_key = stripslashes($meta_key);
118 $meta_value = stripslashes_deep($meta_value);
196 $id_column = 'user' == $meta_type ? 'umeta_id' : 'meta_id';
197 // expected_slashed ($meta_key)
198 $meta_key = stripslashes($meta_key);
199 $meta_value = stripslashes_deep($meta_value);
xapi.php (https://github.com/livinglab/openlab.git) PHP · 131 lines
1 <?php
2 // integrates WatuPRO with the WP Experience API plugin
3 // https://wordpress.org/plugins/wp-experience-api/
14 $options = get_option('watupro_xapi');
16 include(WATUPRO_PATH . '/views/xapi-options.html.php');
17 }
45 // define if passed or failed
46 $passed = false;
47 $advanced_settings = unserialize(stripslashes($exam->advanced_settings));
48 if(empty($advanced_settings['completion_criteria']) or $advanced_settings['completion_criteria'] == 'taken') $passed = true;
49 else {
71 'definition' => array(
72 'name' => array(
73 'en-US' => stripslashes($exam->name),
74 ),
75 'description' => array(
database.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 176 lines
1 <?php
2 /**
3 * A database in the Cloud Databases service
6 * See COPYING for licensing information
7 *
8 * @package phpOpenCloud
9 * @version 1.0
10 * @author Glen Campbell <glen.campbell@rackspace.com>
68 throw new DatabaseNameError(
69 _('The database does not have a Url yet'));
70 return stripslashes($this->Instance()->Url('databases'))
71 . '/' .$this->name;
72 }
class-admin-form.php (https://gitlab.com/Blueprint-Marketing/google-analytics-for-wordpress) PHP · 338 lines
1 <?php
2 /**
3 * @package GoogleAnalytics\Admin
24 self::$form_namespace = $namespace;
26 $action = admin_url( 'admin.php' );
27 if ( isset( $_GET['page'] ) ) {
28 $action .= '?page=' . $_GET['page'];
98 }
99 else {
100 $attributes['value'] = esc_attr( stripslashes( $input_value ) );
101 }
193 }
195 $text .= '<textarea rows="5" cols="60" name="' . $name . '" id="yoast-ga-form-textarea-' . self::$form_namespace . '-' . $id . '">' . stripslashes( $textarea_value ) . '</textarea>';
197 if ( ! is_null( $description ) ) {
template.php (https://gitlab.com/Gashler/sg) PHP · 651 lines
72 <div class="wpuf-form-sub-fields">
73 <label><input type="radio" name="<?php echo $required_name; ?>" value="yes"<?php checked( $required, 'yes' ); ?>> <?php _e( 'Yes', 'wpuf' ); ?> </label>
74 <label><input type="radio" name="<?php echo $required_name; ?>" value="no"<?php checked( $required, 'no' ); ?>> <?php _e( 'No', 'wpuf' ); ?> </label>
127 <label><?php _e( 'Placeholder text', 'wpuf' ); ?></label>
128 <input type="text" class="smallipopInput" name="<?php echo $placeholder_name; ?>" title="<?php esc_attr_e( 'Text for HTML5 placeholder attribute', 'wpuf' ); ?>" value="<?php echo $placeholder_value; ?>" />
129 </div> <!-- .wpuf-form-rows -->
137 <label><?php _e( 'Size', 'wpuf' ); ?></label>
138 <input type="text" class="smallipopInput" name="<?php echo $size_name; ?>" title="<?php esc_attr_e( 'Size of this input field', 'wpuf' ); ?>" value="<?php echo $size_value; ?>" />
139 </div> <!-- .wpuf-form-rows -->
140 <?php
187 <div class="wpuf-form-sub-fields">
188 <label><input type="radio" name="<?php echo $rich_name; ?>" value="no"<?php checked( $rich_value, 'no' ); ?>> <?php _e( 'Normal', 'wpuf' ); ?></label>
189 <label><input type="radio" name="<?php echo $rich_name; ?>" value="yes"<?php checked( $rich_value, 'yes' ); ?>> <?php _e( 'Rich textarea', 'wpuf' ); ?></label>
csv.php (https://github.com/cabenitez/factuweb.git) PHP · 217 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * @version $Id: csv.php 12158 2008-12-25 14:52:28Z lem9 $
5 */
6 if (! defined('PHPMYADMIN')) {
156 for ($i = 0; $i < $fields_cnt; $i++) {
157 if ($csv_enclosed == '') {
158 $schema_insert .= stripslashes(PMA_DBI_field_name($result, $i));
159 } else {
160 $schema_insert .= $csv_enclosed
161 . str_replace($csv_enclosed, $csv_escaped . $csv_enclosed, stripslashes(PMA_DBI_field_name($result, $i)))
162 . $csv_enclosed;
163 }
widgets.php (https://gitlab.com/Magi1053/Extra) PHP · 270 lines
1 <?php
2 // Prevent file from being loaded directly
3 if ( ! defined( 'ABSPATH' ) ) {
70 ?>
71 <div class="adwrap">
72 <?php $i = 1;
73 while ($i <= 8):
74 if ($bannerPath[$i] <> '') { ?>
75 <?php if ($bannerTitle[$i] == '') $bannerTitle[$i] = "advertisement";
76 if ($bannerAlt[$i] == '') $bannerAlt[$i] = "advertisement"; ?>
77 <a href="<?php echo $bannerUrl[$i] ?>" <?php if ($new_window == 1) echo ('target="_blank"') ?>><img src="<?php if ($use_relpath == 1) echo home_url(); else echo $bannerPath[$i]; ?><?php if ($use_relpath == 1 ) echo "/" . $bannerPath[$i]; ?>" alt="<?php echo $bannerAlt[$i]; ?>" title="<?php echo $bannerTitle[$i]; ?>" /></a>
78 <?php }; $i++;
185 echo '<p><label for="' . $this->get_field_id( 'title' ) . '">' . 'Title:' . '</label><input class="widefat" id="' . $this->get_field_id( 'title' ) . '" name="' . $this->get_field_name( 'title' ) . '" type="text" value="' . $title . '" /></p>'; ?>
187 <input class="checkbox" type="checkbox" <?php checked( $instance['use_relpath'], true ) ?> id="<?php echo $this->get_field_id( 'use_relpath' ); ?>" name="<?php echo $this->get_field_name( 'use_relpath' ); ?>" />
188 <label for="<?php echo $this->get_field_id( 'use_relpath' ); ?>">Use Relative Image Paths</label><br />
189 <input class="checkbox" type="checkbox" <?php checked( $instance['new_window'], true ) ?> id="<?php echo $this->get_field_id( 'new_window' ); ?>" name="<?php echo $this->get_field_name( 'new_window' ); ?>" />
190 <label for="<?php echo $this->get_field_id( 'new_window' ); ?>">Open in a new window</label><br /><br />
select.php (https://bitbucket.org/gfelizola/pacaembu-institucional.git) PHP · 362 lines
1 <?php
3 class acf_Select extends acf_Field
182 ?>
183 <tr class="field_option field_option_<?php echo $this->name; ?>">
184 <td class="label">
185 <label for=""><?php _e("Choices",'acf'); ?></label>
186 <p class="description"><?php _e("Enter your choices one per line",'acf'); ?><br />
187 <br />
188 <?php _e("Red",'acf'); ?><br />
189 <?php _e("Blue",'acf'); ?><br />
190 <br />
191 <?php _e("red : Red",'acf'); ?><br />
Gear.php (https://github.com/back2arie/Panada.git) PHP · 267 lines
1 <?php
2 /**
3 * This is the heart of the whole Panada system.
5 * @author Iskandar Soesman <k4ndar@yahoo.com>
6 * @link http://panadaframework.com/
7 * @license http://www.opensource.org/licenses/bsd-license.php
8 * @since version 1.0.0
9 * @package Core System
60 }
62 if( ! file_exists( $file = $folder . str_ireplace('\\', '/', $file) . '.php' ) )
63 throw new Resources\RunException('Resource '.$file.' not available!');
74 {
75 if ( get_magic_quotes_gpc() ) {
76 array_walk_recursive($_GET, array($this, 'stripslashesGpc') );
77 array_walk_recursive($_POST, array($this, 'stripslashesGpc') );
include.php (https://github.com/MyITCRM/myitcrm1.git) PHP · 473 lines
1 <?php
2 #####################################
3 # Display a single open work order #
196 //Remove Extra Slashes caused by Magic Quotes
197 $work_order_description_string = $VAR['work_order_description'];
198 $work_order_description_string = stripslashes($work_order_description_string);
200 $work_order_comments_string = $VAR['work_order_comments'];
201 $work_order_comments_string = stripslashes($work_order_comments_string);
361 //Remove Extra Slashes caused by Magic Quotes
362 $work_order_notes_string = $VAR['work_order_notes'];
363 $work_order_notes_string = stripslashes($work_order_notes_string);
365 $sql = "INSERT INTO ".PRFX."TABLE_WORK_ORDER_NOTES SET
global-constants-and-functions.rst (https://github.com/jamiemill/docs.git) ReStructuredText · 181 lines
40 section for more information.
42 .. php:function:: am(array $one, $two, $three...)
44 Merges all the arrays passed as parameters and returns the merged
93 wrapping <pre> tags around the output.
95 .. php:function:: stripslashes_deep(array $value)
97 Recursively strips slashes from the supplied ``$value``. Returns
109 root directory.
111 .. php:const:: APP\_PATH
113 app directory.
admin-options-home.php (https://github.com/loualvarez/Franklin-Street-Theme.git) PHP · 186 lines
108 <option<?php if( $franklin_street_section['display_type'] == 'four_up' ) : ?> selected="selected"<?php endif ?> value="four_up"><?php _e('Four Up', 'franklinstreet'); ?></option>
109 <option<?php if( $franklin_street_section['display_type'] == 'right_aside' ) : ?> selected="selected"<?php endif ?> value="right_aside"><?php _e('Right Aside', 'franklinstreet'); ?></option>
110 <option<?php if( $franklin_street_section['display_type'] == 'default_loop' ) : ?> selected="selected"<?php endif ?> value="default_loop"><?php _e('Default Loop', 'franklinstreet'); ?></option>
120 <label for="franklin-section-title-<?php echo ( isset( $franklin_street_section['default'] ) ? 'default' : $franklin_street_section_id ); ?>"><?php _e('Section Title', 'franklinstreet'); ?></label>
121 <input type="text" name="franklin-section-title-<?php echo ( isset( $franklin_street_section['default'] ) ? 'default' : $franklin_street_section_id ); ?>" id="franklin-section-title-<?php echo ( isset( $franklin_street_section['default'] ) ? 'default' : $franklin_street_section_id ); ?>" value="<?php echo !isset( $franklin_street_section['default'] ) ? stripslashes( $franklin_street_section['title'] ) : $franklin_defaults['title']; ?>" />
122 </li>
123 <li class="franklin-section-caption">
124 <label for="franklin-section-caption-<?php echo ( isset( $franklin_street_section['default'] ) ? 'default' : $franklin_street_section_id ); ?>"><?php _e('Section Caption', 'franklinstreet'); ?></label>
125 <textarea name="franklin-section-caption-<?php echo ( isset( $franklin_street_section['default'] ) ? 'default' : $franklin_street_section_id ); ?>" id="franklin-section-caption-<?php echo ( isset( $franklin_street_section['default'] ) ? 'default' : $franklin_street_section_id ); ?>"><?php echo !isset( $franklin_street_section['default'] ) ? stripslashes( $franklin_street_section['caption'] ) : $franklin_defaults['caption']; ?></textarea>
126 </li>
127 <li class="franklin-section-num-posts">
128 <label for="franklin-section-num-posts-<?php echo ( isset( $franklin_street_section['default'] ) ? 'default' : $franklin_street_section_id ); ?>"><?php _e('Number of Posts', 'franklinstreet'); ?></label>
129 <input type="text" name="franklin-section-num-posts-<?php echo ( isset( $franklin_street_section['default'] ) ? 'default' : $franklin_street_section_id ); ?>" id="franklin-section-num-posts-<?php echo ( isset( $franklin_street_section['default'] ) ? 'default' : $franklin_street_section_id ); ?>" value="<?php echo !isset( $franklin_street_section['default'] ) ? stripslashes( $franklin_street_section['num_posts'] ) : $franklin_defaults['num_posts']; ?>" />
130 </li>
131 </ul>
revslider_slide.class.php (https://bitbucket.org/zumwalt/eat-with-us.git) PHP · 438 lines
contact.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 110 lines
contact.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 110 lines
test_ext_string.h (https://github.com/kevlund/hiphop-php.git) C Header · 124 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 */
6.tpl (https://github.com/Guskit/Travianx.git) Smarty Template · 285 lines
22 <tr>
23 <td class="role">Attacker</td>
24 <td colspan="10"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
25 </tr>
26 </thead>
82 <?php } ?>
83 <tbody class="goods"><tr><th>Bounty</th><td colspan="10">
84 <div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
85 </td></tr></tbody></table>
172 <tr>
173 <td class="role">Defender</th>
174 <td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
175 </tr></thead>
176 <tbody class="units">
akismet.php (https://github.com/konscript/schroderpartners.git) PHP · 114 lines
1 <?php
2 /**
3 ** Akismet Filter
70 $c['comment_content'] = $content;
72 $ignore = array( 'HTTP_COOKIE', 'HTTP_COOKIE2', 'PHP_AUTH_PW' );
74 foreach ( $_SERVER as $key => $value ) {
81 foreach ( $c as $key => $data )
82 $query_string .= $key . '=' . urlencode( stripslashes( (string) $data ) ) . '&';
84 $response = akismet_http_post( $query_string,
Form.php (https://gitlab.com/lamovible/grand-regis) PHP · 160 lines
reqExport.php (https://github.com/viglesiasce/testlink.git) PHP · 178 lines
1 <?php
2 /**
3 * TestLink Open Source Project - http://testlink.sourceforge.net/
4 * This script is distributed under the GNU General Public License 2 or later.
5 *
6 * Filename $RCSfile: reqExport.php,v $
7 *
8 * @version $Revision: 1.10 $
15 * child (direct children) requirements inside a req. spec
16 **/
17 require_once("../../config.inc.php");
18 require_once("csv.inc.php");
19 require_once("xml.inc.php");
20 require_once("common.php");
EE_url_helper.php (https://github.com/mondomon916/LYBC.git) PHP · 128 lines
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 4.3.2 or newer
6 *
7 * @package CodeIgniter
79 }
81 return trim(stripslashes($str));
82 }
83 }
127 /* End of file EE_url_helper.php */
128 /* Location: ./system/expressionengine/helpers/EE_url_helper.php */
C_PatientFinder.class.php (https://github.com/ranjanprasad/openemr.git) PHP · 141 lines
1 <?php
3 require_once ($GLOBALS['fileroot'] . "/library/classes/Controller.class.php");
4 require_once($GLOBALS['fileroot'] ."/library/classes/Provider.class.php");
5 require_once($GLOBALS['fileroot'] ."/library/classes/InsuranceNumbers.class.php");
14 $this->_db = $GLOBALS['adodb']['db'];
15 $this->template_mod = $template_mod;
16 $this->assign("FORM_ACTION", $GLOBALS['webroot']."/controller.php?" . $_SERVER['QUERY_STRING']);
17 ///////////////////////////////////
18 //// What should this be?????
19 //////////////////////////////////
20 $this->assign("CURRENT_ACTION", $GLOBALS['webroot']."/controller.php?" . "practice_settings&patient_finder&");
21 /////////////////////////////////
22 $this->assign("STYLE", $GLOBALS['style']);
business_register_exec.php (https://bitbucket.org/isanneh/campus-pages.git) PHP · 185 lines
1 <?php
2 //Start session
3 session_start();
5 //Include database connection details
6 //require_once('connect.php');
7 include("connect.php");
18 $str = @trim($str);
19 if(get_magic_quotes_gpc()) {
20 $str = stripslashes($str);
21 }
22 return mysql_real_escape_string($str);
164 $_SESSION['ERRMSG_ARR'] = $errmsg_arr;
165 session_write_close();
166 header("location: business_registration.php");
167 exit();
168 }
Framework.php (https://github.com/sharpmachine/whiteantelopestudio.com.git) PHP · 494 lines
1 <?php
2 /**
3 * Framework
338 class SingletonFramework {
340 // @todo Requires Late-Static Binding in PHP 5.3 before extending the framework for instance return method to work
342 // protected static $object;
446 public function updateform () {
447 $submitted = stripslashes_deep($_POST); // Clean it up
448 $this->form = array_merge($this->defaults, $submitted); // Capture it
449 }
restore_cla.php (https://bitbucket.org/isanneh/campus-pages.git) PHP · 550 lines
1 <?php
2 //Start session
3 session_start();
5 //Include database connection details
6 require_once('connect.php');
8 //Array to store validation errors
17 $str = @trim($str);
18 if(get_magic_quotes_gpc()) {
19 $str = stripslashes($str);
20 }
21 return mysql_real_escape_string($str);
32 $_SESSION['ERRMSG_ARR'] = $errmsg_arr;
33 session_write_close();
34 header("location: classified.php");
35 exit();
36 }
ArrayUtil.class.php (https://github.com/KomHunter2/WCF.git) PHP · 157 lines
1 <?php
2 namespace wcf\util;
7 * @author Marcel Werk
8 * @copyright 2001-2009 WoltLab GmbH
9 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
10 * @package com.woltlab.wcf
11 * @subpackage util
72 /**
73 * Applies stripslashes on all elements of an array.
74 *
75 * @param array $array
76 * @return array $array
77 */
78 public static function stripslashes($array) {
79 if (!is_array($array)) {
80 return stripslashes($array);
options.php (https://bitbucket.org/cevenson/photosites-themes.git) PHP · 191 lines
1 <?php
2 /**
3 * Provides interface to store and retrieve plugin and user options
63 // wp_filter_post_kses will add slashes to something like "you've" -> "you\'ve" but not added slashes to other slashes
64 // Escaping the slashes and then stripping them, gets past this problem and allows preservation of intentionally inserted slashes
65 $options['loading'][$field] = stripslashes(wp_filter_post_kses( addslashes($options['loading'][$field] )));
66 }
commonSimpleDbGenerator.class.php (https://github.com/juddy/GIP.git) PHP · 439 lines
195 {
196 $thisT = $this->getTableObject();
197 $configurationFile = strtolower($thisT->getDatabase()).".conf.inc.php";
198 }
200 $this->setConfigurationFile($configurationFile);
202 $this->setCodeStarter("<?php\n");
203 $this->setCodeEnder("?>");
204 $this->setCodeTab("\t");
222 {
224 $code .= $this->getCodeTab()."include_once(\"dbConnection.php\");".$this->getLineEnder();
225 $code .= $this->getCodeTab()."include_once(\"header.php\");".$this->getLineEnder();
228 else
229 {
230 $code .= stripslashes($this->getHeaderText()).$this->getLineEnder();
231 }
xml.php (https://bitbucket.org/steve_delbar/iepsm-projet-de-d-veloppement-internet-2013.git) PHP · 154 lines
1 <?php
2 /* $Id: xml.php,v 2.7 2004/04/14 13:51:11 nijel Exp $ */
49 . '<!--' . $crlf
50 . '-' . $crlf
51 . '- phpMyAdmin XML Dump' . $crlf
52 . '- version ' . PMA_VERSION . $crlf
53 . '- http://www.phpmyadmin.net' . $crlf
60 . '- ' . $GLOBALS['strGenTime'] . ': ' . PMA_localisedDate() . $crlf
61 . '- ' . $GLOBALS['strServerVersion'] . ': ' . substr(PMA_MYSQL_INT_VERSION, 0, 1) . '.' . (int) substr(PMA_MYSQL_INT_VERSION, 1, 2) . '.' . (int) substr(PMA_MYSQL_INT_VERSION, 3) . $crlf
62 . '- ' . $GLOBALS['strPHPVersion'] . ': ' . phpversion() . $crlf
63 . '-->' . $crlf . $crlf;
64 return PMA_exportOutputHandler($head);
129 $columns_cnt = PMA_DBI_num_fields($result);
130 for ($i = 0; $i < $columns_cnt; $i++) {
131 $columns[$i] = stripslashes(PMA_DBI_field_name($result, $i));
132 }
133 unset($i);
AppSQL.php (https://github.com/riaf/ethna.git) PHP · 170 lines
1 <?php
2 // vim: foldmethod=marker
3 /**
4 * AppSQL.php
5 *
6 * @author Masaki Fujimoto <fujimoto@php.net>
7 * @license http://www.opensource.org/licenses/bsd-license.php The BSD License
8 * @package Ethna
9 * @version $Id: fab40c289e17f24d2f915bfacb6b81008cc30c13 $
14 * アプリケーションSQLベースクラス
15 *
16 * @author Masaki Fujimoto <fujimoto@php.net>
17 * @access public
18 * @package Ethna
Reload.php (https://bitbucket.org/valmy/openx.git) PHP · 125 lines
1 <?php
3 /*
26 */
28 require_once MAX_PATH . '/lib/OA/Dashboard/Widget.php';
29 require_once MAX_PATH . '/lib/OA/Central/Dashboard.php';
49 if (isset($aParams['url'])) {
50 if ($aUrl = @parse_url(stripslashes($aParams['url']))) {
51 $aUrl['protocol'] = $aUrl['scheme'];
52 if (empty($aUrl['path'])) {
news.php (https://github.com/Implying/tsukiboards.git) PHP · 89 lines
1 <?php
2 /*
3 * This file is part of arcNET
35 // Require the configuration file
36 require 'config.php';
37 require KU_ROOTDIR . 'inc/functions.php';
38 require_once KU_ROOTDIR . 'lib/dwoo.php';
39 global $CURRENTLOCALE;
40 $dwoo_tpl = new Dwoo_Template_File(KU_TEMPLATEDIR . '/news.tpl');
66 $board = $board[0];
67 $dateEmail = (empty($board['anonymous'])) ? $post['email'] : 0;
68 $post['message'] = stripslashes(formatLongMessage($post['message'], $board['name'], (($post['parentid'] == 0) ? ($post['id']) : ($post['parentid'])), true, 7));
69 $post['timestamp_formatted'] = formatDate($post['timestamp'], 'post', $CURRENTLOCALE, $dateEmail);
70 $threadId = (($post['parentid'] == 0) ? ($post['id']) : ($post['parentid']));
DbAdapter.php (https://github.com/skoop/Gesichtbuch.git) PHP · 139 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: DbAdapter.php 6352 2010-08-16 15:02:45Z tpater $
21 */
24 * @see Zend_Tool_Project_Provider_Abstract
25 */
26 // require_once 'Zend/Tool/Project/Provider/Abstract.php';
28 /**
29 * @see Zend_Tool_Framework_Provider_Interactable
30 */
31 // require_once 'Zend/Tool/Framework/Provider/Interactable.php';
33 /**
search.php (https://gitlab.com/alidzapp/gamerz-file-explorer) PHP · 208 lines
4 require( 'settings.php' );
5 require( 'functions.php' );
7 ### Start Timer
102 <!-- Search Files -->
103 <form class="form" method="get" action="<?php echo GFE_URL; ?>/search.php">
104 <div class="form-group row">
105 <label for="search-term" class="col-sm-2 form-control-label">Search Term</label>
129 <div class="col-sm-10">
130 <select id="sort-by" name="by" class="form-control" size="1">
131 <option value="name"<?php echo ( $sort_by === 'name' ? ' selected="selected"' : '' ); ?>>File Name</option>
132 <option value="size"<?php echo ( $sort_by === 'size' ? ' selected="selected"' : '' ); ?>>File Size</option>
133 <option value="type"<?php echo ( $sort_by === 'type' ? ' selected="selected"' : '' ); ?>>File Type</option>
134 <option value="date"<?php echo ( $sort_by === 'date' ? ' selected="selected"' : '' ); ?>>File Date</option>