This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($) { | |
var element_clicked = false; | |
$('#my-button').click(function() { | |
formfield = jQuery('#my-button').attr('name'); | |
tb_show('', 'media-upload.php?type=image&TB_iframe=true'); | |
element_clicked = true; | |
return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: nextend-facebook-connect.php | |
=================================================================== | |
--- nextend-facebook-connect.php (revision 819180) | |
+++ nextend-facebook-connect.php (working copy) | |
@@ -132,13 +132,13 @@ | |
AND type = \'fb\'', $user_info->ID)); | |
set_site_transient($user_info->ID.'_new_fb_admin_notice',__('Your Facebook profile is successfully unlinked from your account.', 'nextend-facebook-connect'), 3600); | |
} | |
- new_fb_redirect(); | |
+ new_fb_redirect($user_info); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: custom-post-type-ui.php | |
=================================================================== | |
--- custom-post-type-ui.php (revision 821057) | |
+++ custom-post-type-ui.php (working copy) | |
@@ -59,6 +59,7 @@ | |
add_submenu_page( 'cpt_main_menu', __( 'Add New', 'cpt-plugin' ), __( 'Add New', 'cpt-plugin' ), 'manage_options', 'cpt_sub_add_new', 'cpt_add_new' ); | |
add_submenu_page( 'cpt_main_menu', __( 'Manage Post Types', 'cpt-plugin' ), __( 'Manage Post Types', 'cpt-plugin' ), 'manage_options', 'cpt_sub_manage_cpt', 'cpt_manage_cpt' ); | |
add_submenu_page( 'cpt_main_menu', __( 'Manage Taxonomies', 'cpt-plugin' ), __( 'Manage Taxonomies', 'cpt-plugin' ), 'manage_options', 'cpt_sub_manage_taxonomies', 'cpt_manage_taxonomies' ); | |
+ add_submenu_page( 'cpt_main_menu', __( 'Import/Export', 'cpt-plugin' ), __( 'Import/Export', 'cpt-plugin' ), 'manage_options', 'cpt_sub_import_export', 'cpt_import_export' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: modify-installer.php | |
=================================================================== | |
--- modify-installer.php (revision 826618) | |
+++ modify-installer.php (working copy) | |
@@ -134,7 +134,7 @@ | |
$contents = $archive->listContent(); | |
foreach ( (array) $contents as $content ) { | |
- if ( preg_match( '|^([^/]+)/$|', $content['filename'], $matches ) ) { | |
+ if ( preg_match( '|^([^/]+)/|', $content['filename'], $matches ) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WistiaApi | |
{ | |
static $WISTIA_UPLOAD_URL='https://upload.wistia.com'; | |
static $WISTIA_API_URL='https://api.wistia.com/v1'; | |
function __construct($api_key) | |
{ | |
$this->key = $api_key; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
# The ServerName directive sets the request scheme, hostname and port that | |
# the server uses to identify itself. This is used when creating | |
# redirection URLs. In the context of virtual hosts, the ServerName | |
# specifies what hostname must appear in the request's Host: header to | |
# match this virtual host. For the default virtual host (this file) this | |
# value is not decisive as it is used as a last resort host regardless. | |
# However, you must set it for any further virtual host explicitly. | |
#ServerName www.example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /home/user/public_html | |
ErrorLog /home/user/public_html/error.log | |
CustomLog /home/user/public_html/access.log combined | |
<Directory /home/user/public_html> | |
Options Indexes FollowSymLinks | |
AllowOverride All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SSHPK="..." | |
MYSQLP="..." | |
MYSQLDB="..." | |
USERP="..." | |
ufw allow http | |
ufw allow https | |
ufw allow mysql | |
ufw allow ssh | |
echo y | ufw enable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!$_GET['pw']=='hFGw6DSxIFo8n7c4mb0RRCAdxAsK1jTDyZPyb6xlxqXKq6tM2') die('ok'); | |
$data = json_decode($HTTP_RAW_POST_DATA,true); | |
chdir(dirname(__DIR__)); | |
exec('bash update.sh', $output, $return); | |
die(join("\n",$output)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export HOME=/home/samplesale | |
git pull origin master | |
/usr/local/bin/composer install | |
php artisan migrate -n | |
chmod -R 755 . | |
chmod -R 775 app/storage |
OlderNewer