-
10
-
12
-
2024
Kategorisi : Uncategorized
window.onload= function(){ DisableEnableLinks(true) } function DisableEnableLinks(xHow){ objLinks = document.links; for(i=0;i<objLinks.length;i++){ objLinks[i].disabled = xHow; //link with onclick if(objLinks[i].onclick && xHow){ objLinks[i].onclick = new Function("return false;" + objLinks[i].onclick.toString().getFuncBody()); } //link without onclick else if(xHow){ objLinks[i].onclick = function(){return false;} } //remove return false with link without onclick else if (!xHow && objLinks[i].onclick.toString().indexOf("function(){return false;}") != -1){ objLinks[i].onclick = null; } //remove return false link with onclick else if(!xHow && objLinks[i].onclick.toString().indexOf("return false;") != -1){ strClick = objLinks[i].onclick.toString().getFuncBody().replace("return false;","") objLinks[i].onclick = new Function(strClick); } } } String.prototype.getFuncBody = function(){ var str=this.toString(); str=str.replace(/[^{]+{/,""); str=str.substring(0,str.length-1); str = str.replace(/\n/gi,""); if(!str.match(/\(.*\)/gi))str += ")"; return str; }
-
30
-
05
-
2024
Kategorisi : Wordpress
if ( !wp_is_mobile() ) {
echo do_shortcode('[rev_slider alias="home"]');
}
else
{
// mobile devices
echo do_shortcode('[rev_slider alias="home_mob"]');
}
-
22
-
05
-
2024
Kategorisi : Wordpress
<pre>function custom_text_replace( $translated_text, $untranslated_text, $domain ) {
switch ( $untranslated_text ) {
case 'Read More':
$translated_text = __( 'Learn More', $domain );
break;
case 'Leave a Comment':
$translated_text = __( 'Share Your Thoughts', $domain );
break;
case 'Search':
$translated_text = __( 'Find', $domain );
break;
// Leave the default case out when using languages other than en_US
default:
$translated_text = $untranslated_text;
break;
}
return $translated_text;
}
add_filter( 'gettext', 'custom_text_replace', 20, 3 );</pre>
-
16
-
01
-
2024
Kategorisi : Wordpress
DELETE
wp_users,
wp_usermeta
FROM
wp_users
INNER JOIN wp_usermeta ON wp_users.ID = wp_usermeta.user_id
WHERE
wp_users.ID IN (1,2,3);
-
15
-
08
-
2023
Kategorisi : Wordpress
DELETE FROM b_users
WHERE
b_users.ID NOT IN (SELECT
meta_value
FROM
b_postmeta
WHERE
meta_key = '_customer_user')
AND b_users.ID NOT IN (SELECT DISTINCT
(post_author)
FROM
b_posts) LIMIT 100
;
DELETE FROM b_usermeta
WHERE
b_usermeta.user_id NOT IN (SELECT
ID
FROM
b_users);
-
29
-
11
-
2021
Kategorisi : Wordpress
UPDATE wp_postmeta SET meta_value = meta_value*1.8 WHERE meta_key = '_regular_price' AND meta_value != '';
UPDATE wp_postmeta SET meta_value = meta_value*1.8 WHERE meta_key = '_sale_price' AND meta_value != '';
UPDATE wp_postmeta SET meta_value = meta_value*1.8 WHERE meta_key = '_price' AND meta_value != '';
UPDATE wp_postmeta SET meta_value = meta_value*1.8 WHERE meta_key = '_regular_price_tmp' AND meta_value != '';
UPDATE wp_postmeta SET meta_value = meta_value*1.8 WHERE meta_key = '_sale_price_tmp' AND meta_value != '';
UPDATE wp_postmeta SET meta_value = meta_value*1.8 WHERE meta_key = '_price_tmp' AND meta_value != '';
UPDATE wp_postmeta SET meta_value = meta_value*1.8 WHERE meta_key = '_min_variation_price' AND meta_value != '';
UPDATE wp_postmeta SET meta_value = meta_value*1.8 WHERE meta_key = '_max_variation_price' AND meta_value != '';
UPDATE wp_postmeta SET meta_value = meta_value*1.8 WHERE meta_key = '_min_variation_regular_price' AND meta_value != '';
UPDATE wp_postmeta SET meta_value = meta_value*1.8 WHERE meta_key = '_max_variation_regular_price' AND meta_value != '';
UPDATE wp_postmeta SET meta_value = meta_value*1.8 WHERE meta_key = '_min_variation_sale_price' AND meta_value != '';
UPDATE wp_postmeta SET meta_value = meta_value*1.8 WHERE meta_key = '_max_variation_sale_price' AND meta_value != '';
DELETE FROM wp_options WHERE (option_name LIKE '_transient_wc_var_pricwp_%' OR option_name LIKE '_transient_timeout_wc_var_pricwp_%');
-
25
-
11
-
2021
Kategorisi : Linux
find /var/www/*/ -type f -exec sed -i ‘s#http://#https://#g’ {} +
-
20
-
11
-
2021
Kategorisi : Php
wget --no-check-certificate
'https://docs.google.com/uc?export=download&id=FILEID' -r -A 'uc*' -e robots=off -nd
-
03
-
11
-
2021
Kategorisi : Linux
Open the file manager (by default PCManFM), go to /usr/share/applications
. Right-click on the program you want to be added to your autostart programs, and click Copy
. Now, go to ~/.config/autostart
in PCManFM, right-click and click Paste
. The program should be added to your autostart programs now, but double-check by clicking the LXMenu down left, click Settings
, and then Desktop Session Settings
.
-
05
-
02
-
2020
Kategorisi : Centos,Linux
mkdir /mnt/nassurucu
yum install cifs-utils
mount -t cifs //nassunucuadresi/kullaniciadi -o username=kullaniciadi,password=xxxxxx- /mnt/nassurucu/