Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
noblogs-wp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
39
Issues
39
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ai
noblogs-wp
Commits
5866efac
Commit
5866efac
authored
Sep 05, 2014
by
lucha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[auto] Plugin: nextgen-gallery 2.0.66.27
parent
0736fefa
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
379 additions
and
172 deletions
+379
-172
wp-content/plugins/nextgen-gallery/changelog.txt
wp-content/plugins/nextgen-gallery/changelog.txt
+12
-0
wp-content/plugins/nextgen-gallery/nggallery.php
wp-content/plugins/nextgen-gallery/nggallery.php
+16
-16
wp-content/plugins/nextgen-gallery/non_pope/class.nextgen_settings.php
...ugins/nextgen-gallery/non_pope/class.nextgen_settings.php
+12
-17
wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_settings_manager.php
...en-gallery/non_pope/class.photocrati_settings_manager.php
+21
-20
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ajax/module.ajax.php
.../products/photocrati_nextgen/modules/ajax/module.ajax.php
+6
-1
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/attach_to_post/module.attach_to_post.php
..._nextgen/modules/attach_to_post/module.attach_to_post.php
+6
-1
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/frame_communication/class.frame_communication_option_handler.php
...ommunication/class.frame_communication_option_handler.php
+9
-0
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/frame_communication/class.frame_event_publisher.php
...dules/frame_communication/class.frame_event_publisher.php
+1
-1
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/frame_communication/module.frame_communication.php
...odules/frame_communication/module.frame_communication.php
+11
-6
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/fs/class.fs.php
...llery/products/photocrati_nextgen/modules/fs/class.fs.php
+37
-19
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/mvc/adapter.mvc_fs.php
...roducts/photocrati_nextgen/modules/mvc/adapter.mvc_fs.php
+12
-1
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/mvc/adapter.mvc_router.php
...cts/photocrati_nextgen/modules/mvc/adapter.mvc_router.php
+28
-4
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/mvc/class.mvc_option_handler.php
...otocrati_nextgen/modules/mvc/class.mvc_option_handler.php
+15
-2
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/mvc/class.mvc_view.php
...roducts/photocrati_nextgen/modules/mvc/class.mvc_view.php
+1
-2
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/mvc/module.mvc.php
...ry/products/photocrati_nextgen/modules/mvc/module.mvc.php
+13
-5
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_admin/module.nextgen_admin.php
...ti_nextgen/modules/nextgen_admin/module.nextgen_admin.php
+6
-1
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_album/module.nextgen_basic_album.php
...odules/nextgen_basic_album/module.nextgen_basic_album.php
+1
-1
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/module.nextgen_basic_gallery.php
...es/nextgen_basic_gallery/module.nextgen_basic_gallery.php
+1
-1
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_imagebrowser/module.nextgen_basic_imagebrowser.php
..._basic_imagebrowser/module.nextgen_basic_imagebrowser.php
+1
-1
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_singlepic/module.nextgen_basic_singlepic.php
...extgen_basic_singlepic/module.nextgen_basic_singlepic.php
+1
-1
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_tagcloud/module.nextgen_basic_tagcloud.php
.../nextgen_basic_tagcloud/module.nextgen_basic_tagcloud.php
+1
-1
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_settings/module.nextgen_settings.php
...tgen/modules/nextgen_settings/module.nextgen_settings.php
+1
-1
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/css/nggadmin.css
...otocrati_nextgen/modules/ngglegacy/admin/css/nggadmin.css
+3
-3
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/js/ngg.ajax.js
...photocrati_nextgen/modules/ngglegacy/admin/js/ngg.ajax.js
+47
-18
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/js/ngg.progressbar.js
...ati_nextgen/modules/ngglegacy/admin/js/ngg.progressbar.js
+1
-0
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/third_party_compat/module.third_party_compat.php
.../modules/third_party_compat/module.third_party_compat.php
+21
-1
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/wordpress_routing/adapter.wordpress_router.php
...en/modules/wordpress_routing/adapter.wordpress_router.php
+59
-38
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/wordpress_routing/module.wordpress_routing.php
...en/modules/wordpress_routing/module.wordpress_routing.php
+24
-10
wp-content/plugins/nextgen-gallery/readme.txt
wp-content/plugins/nextgen-gallery/readme.txt
+12
-0
No files found.
wp-content/plugins/nextgen-gallery/changelog.txt
View file @
5866efac
NextGEN Gallery
by Photocrati Media
= V2.0.66.27 - 08.18.2014 =
* Fixed: Missing class.frame_communication_option_handerl.php error
= V2.0.66.26 - 08.18.2014 =
* NEW: Added fault tolerance to bulk action AJAX requests
* Changed: Moved some settings from DB to in-memory
* Fixed: Compatibility with BuddyPress plugin in multisite environments
* Fixed: Ability to find static resources outside of WP_PLUGIN_DIR
* Fixed: Autoupdate conflict with Photocrati Theme
* Fixed: Workaround GoDaddy's throttling of consecutive AJAX requests
* Fixed: Issue with settings manager in multisite enviroments
= V2.0.66.17 - 08.08.2014 =
* NEW: Added french translations
* Secured: XSS vulnerability in jQuery Plupload Queue (thanks Codevigilant Team)
...
...
wp-content/plugins/nextgen-gallery/nggallery.php
View file @
5866efac
...
...
@@ -4,7 +4,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
/**
* Plugin Name: NextGEN Gallery by Photocrati
* Description: The most popular gallery plugin for WordPress and one of the most popular plugins of all time with over 9 million downloads.
* Version: 2.0.66.
1
7
* Version: 2.0.66.
2
7
* Author: Photocrati Media
* Plugin URI: http://www.nextgen-gallery.com
* Author URI: http://www.photocrati.com
...
...
@@ -255,9 +255,7 @@ class C_NextGEN_Bootstrap
}
// If the selected stylesheet is using an unsafe path, then notify the user
if
(
C_NextGen_Style_Manager
::
get_instance
()
->
is_directory_unsafe
())
{
add_action
(
'all_admin_notices'
,
array
(
&
$this
,
'display_stylesheet_notice'
));
}
add_action
(
'all_admin_notices'
,
array
(
&
$this
,
'display_stylesheet_notice'
));
// Delete displayed gallery transients periodically
add_filter
(
'cron_schedules'
,
array
(
&
$this
,
'add_ngg_schedule'
));
...
...
@@ -358,17 +356,19 @@ class C_NextGEN_Bootstrap
*/
function
display_stylesheet_notice
()
{
$styles
=
C_NextGen_Style_Manager
::
get_instance
();
$filename
=
$styles
->
get_selected_stylesheet
();
$abspath
=
$styles
->
find_selected_stylesheet_abspath
();
$newpath
=
$styles
->
new_dir
;
echo
"<div class='updated error'>
<h3>WARNING: NextGEN Gallery Stylesheet NOT Upgrade-safe</h3>
<p>
<strong>
{
$filename
}
</strong> is currently stored in <strong>
{
$abspath
}
</strong>, which isn't upgrade-safe. Please move the stylesheet to
<strong>
{
$newpath
}
</strong> to ensure that your customizations persist after updates.
</p></div>"
;
if
(
C_NextGen_Style_Manager
::
get_instance
()
->
is_directory_unsafe
())
{
$styles
=
C_NextGen_Style_Manager
::
get_instance
();
$filename
=
$styles
->
get_selected_stylesheet
();
$abspath
=
$styles
->
find_selected_stylesheet_abspath
();
$newpath
=
$styles
->
new_dir
;
echo
"<div class='updated error'>
<h3>WARNING: NextGEN Gallery Stylesheet NOT Upgrade-safe</h3>
<p>
<strong>
{
$filename
}
</strong> is currently stored in <strong>
{
$abspath
}
</strong>, which isn't upgrade-safe. Please move the stylesheet to
<strong>
{
$newpath
}
</strong> to ensure that your customizations persist after updates.
</p></div>"
;
}
}
/**
...
...
@@ -431,7 +431,7 @@ class C_NextGEN_Bootstrap
define
(
'NGG_PRODUCT_URL'
,
path_join
(
str_replace
(
"
\\
"
,
'/'
,
NGG_PLUGIN_URL
),
'products'
));
define
(
'NGG_MODULE_URL'
,
path_join
(
str_replace
(
"
\\
"
,
'/'
,
NGG_PRODUCT_URL
),
'photocrati_nextgen/modules'
));
define
(
'NGG_PLUGIN_STARTED_AT'
,
microtime
());
define
(
'NGG_PLUGIN_VERSION'
,
'2.0.66.
1
7'
);
define
(
'NGG_PLUGIN_VERSION'
,
'2.0.66.
2
7'
);
if
(
!
defined
(
'NGG_HIDE_STRICT_ERRORS'
))
{
define
(
'NGG_HIDE_STRICT_ERRORS'
,
TRUE
);
...
...
wp-content/plugins/nextgen-gallery/non_pope/class.nextgen_settings.php
View file @
5866efac
...
...
@@ -2,28 +2,23 @@
if
(
!
class_exists
(
'C_NextGen_Settings'
))
{
class
C_NextGen_Settings
{
static
function
get_instance
()
{
class
C_NextGen_Settings
{
static
function
get_instance
()
{
return
C_Photocrati_Settings_Manager
::
get_instance
();
}
static
function
add_option_handler
(
$klass
,
$options
=
array
())
{
$instance
=
self
::
get_instance
();
return
$instance
->
add_option_handler
(
$klass
,
$options
);
}
}
}
}
}
if
(
!
class_exists
(
'C_NextGen_Global_Settings'
))
{
class
C_NextGen_Global_Settings
extends
C_NextGen_Settings
{
static
function
get_instance
()
{
class
C_NextGen_Global_Settings
extends
C_NextGen_Settings
{
static
function
get_instance
()
{
if
(
is_multisite
())
return
C_Photocrati_Global_Settings_Manager
::
get_instance
();
else
else
{
return
C_Photocrati_Settings_Manager
::
get_instance
();
}
}
}
}
}
}
\ No newline at end of file
wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_settings_manager.php
View file @
5866efac
...
...
@@ -64,11 +64,12 @@ if (!class_exists('C_Photocrati_Settings_Manager_Base')) {
{
$retval
=
$default
;
if
(
isset
(
$this
->
_options
[
$key
]))
$retval
=
$this
->
_options
[
$key
];
elseif
((
$handler
=
$this
->
_get_option_handler
(
$key
,
'get'
)))
{
$retval
=
$handler
->
get
(
$key
,
$default
);
}
if
((
$handler
=
$this
->
_get_option_handler
(
$key
,
'get'
)))
{
$retval
=
$handler
->
get
(
$key
,
$default
);
}
else
if
(
isset
(
$this
->
_options
[
$key
]))
{
$retval
=
$this
->
_options
[
$key
];
}
// In case a stdObject has been passed in as a value, we
// want to only return scalar values or arrays
...
...
@@ -224,14 +225,14 @@ if (!class_exists('C_Photocrati_Settings_Manager_Base')) {
if
(
!
class_exists
(
'C_Photocrati_Global_Settings_Manager'
))
{
class
C_Photocrati_Global_Settings_Manager
extends
C_Photocrati_Settings_Manager_Base
{
static
$_instance
=
NULL
;
public
static
function
get_instance
()
{
static
$_instance
=
NULL
;
if
(
is_null
(
$_instance
))
{
$klass
=
get_class
();
$_instance
=
new
$klass
();
}
return
$_instance
;
if
(
is_null
(
self
::
$_instance
))
{
$klass
=
get_class
();
self
::
$_instance
=
new
$klass
();
}
return
self
::
$_instance
;
}
function
save
()
...
...
@@ -257,15 +258,15 @@ if (!class_exists('C_Photocrati_Global_Settings_Manager')) {
if
(
!
class_exists
(
'C_Photocrati_Settings_Manager'
))
{
class
C_Photocrati_Settings_Manager
extends
C_Photocrati_Settings_Manager_Base
{
public
static
function
get_instance
()
{
static
$_instance
=
NULL
;
if
(
is_null
(
$_instance
))
{
$klass
=
get_class
();
$_instance
=
new
$klass
();
}
return
$_instance
;
}
static
$_instance
=
NULL
;
public
static
function
get_instance
()
{
if
(
is_null
(
self
::
$_instance
))
{
$klass
=
get_class
();
self
::
$_instance
=
new
$klass
();
}
return
self
::
$_instance
;
}
function
get
(
$key
,
$default
=
NULL
)
{
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ajax/module.ajax.php
View file @
5866efac
...
...
@@ -21,11 +21,16 @@ class M_Ajax extends C_Base_Module
);
include_once
(
'class.ajax_option_handler.php'
);
C_NextGen_Settings
::
add_option_handler
(
'C_Ajax_Option_Handler'
,
array
(
C_NextGen_Settings
::
get_instance
()
->
add_option_handler
(
'C_Ajax_Option_Handler'
,
array
(
'ajax_slug'
,
'ajax_url'
,
'ajax_js_url'
));
if
(
is_multisite
())
C_NextGen_Global_Settings
::
get_instance
()
->
add_option_handler
(
'C_Ajax_Option_Handler'
,
array
(
'ajax_slug'
,
'ajax_url'
,
'ajax_js_url'
));
include_once
(
'class.ajax_installer.php'
);
C_Photocrati_Installer
::
add_handler
(
$this
->
module_id
,
'C_Ajax_Installer'
);
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/attach_to_post/module.attach_to_post.php
View file @
5866efac
...
...
@@ -31,11 +31,16 @@ class M_Attach_To_Post extends C_Base_Module
);
include_once
(
'class.attach_to_post_option_handler.php'
);
C_NextGen_Settings
::
add_option_handler
(
'C_Attach_To_Post_Option_Handler'
,
array
(
C_NextGen_Settings
::
get_instance
()
->
add_option_handler
(
'C_Attach_To_Post_Option_Handler'
,
array
(
'attach_to_post_url'
,
'gallery_preview_url'
,
'attach_to_post_display_tab_js_url'
));
if
(
is_multisite
())
C_NextGen_Global_Settings
::
get_instance
()
->
add_option_handler
(
'C_Attach_To_Post_Option_Handler'
,
array
(
'attach_to_post_url'
,
'gallery_preview_url'
,
'attach_to_post_display_tab_js_url'
));
include_once
(
'class.attach_to_post_installer.php'
);
C_Photocrati_Installer
::
add_handler
(
$this
->
module_id
,
'C_Attach_To_Post_Installer'
);
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/frame_communication/class.frame_communication_option_handler.php
0 → 100644
View file @
5866efac
<?php
class
C_Frame_Communication_Option_Handler
{
function
get
(
$key
,
$default
=
'X-Frame-Events'
)
{
return
'X-Frame-Events'
;
}
}
\ No newline at end of file
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/frame_communication/class.frame_event_publisher.php
View file @
5866efac
...
...
@@ -15,7 +15,7 @@ class C_Frame_Event_Publisher extends C_Component
function
initialize
()
{
parent
::
initialize
();
$this
->
setting_name
=
C_NextGen_Settings
::
get_instance
()
->
frame_
communication_option
_name
;
$this
->
setting_name
=
C_NextGen_Settings
::
get_instance
()
->
frame_
event_cookie
_name
;
}
/**
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/frame_communication/module.frame_communication.php
View file @
5866efac
...
...
@@ -15,15 +15,20 @@ class M_Frame_Communication extends C_Base_Module
'photocrati-frame_communication'
,
'Frame/iFrame Inter-Communication'
,
'Provides a means for HTML frames to share server-side events with each other'
,
'0.
3
'
,
'0.
4
'
,
'http://www.nextgen-gallery.com'
,
'Photocrati Media'
,
'http://www.photocrati.com'
,
$context
);
include_once
(
'class.frame_communication_installer.php'
);
C_Photocrati_Installer
::
add_handler
(
$this
->
module_id
,
'C_Frame_Communication_Installer'
);
include_once
(
'class.frame_communication_option_handler.php'
);
C_NextGen_Settings
::
get_instance
()
->
add_option_handler
(
'C_Frame_Communication_Option_Handler'
,
array
(
'frame_event_cookie_name'
,
));
C_NextGen_Global_Settings
::
get_instance
()
->
add_option_handler
(
'C_Frame_Communication_Option_Handler'
,
array
(
'frame_event_cookie_name'
,
));
}
function
_register_utilities
()
...
...
@@ -56,9 +61,9 @@ class M_Frame_Communication extends C_Base_Module
function
get_type_list
()
{
return
array
(
'C_Frame_Communication_
Installer'
=>
'class.frame_communication_instal
ler.php'
,
'C_Frame_Event_Publisher'
=>
'class.frame_event_publisher.php'
,
'I_Frame_Event_Publisher'
=>
'interface.frame_event_publisher.php'
'C_Frame_Communication_
Option_Handler'
=>
'class.frame_communication_option_hand
ler.php'
,
'C_Frame_Event_Publisher'
=>
'class.frame_event_publisher.php'
,
'I_Frame_Event_Publisher'
=>
'interface.frame_event_publisher.php'
);
}
}
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/fs/class.fs.php
View file @
5866efac
...
...
@@ -336,33 +336,51 @@ class Mixin_Fs_Instance_Methods extends Mixin
* Gets the document root for this application
* @return string
*/
function
get_document_root
(
$type
=
'root'
)
{
if
(
$type
==
'plugins'
)
{
$retval
=
WP_PLUGIN_DIR
;
}
else
if
(
$type
==
'content'
)
{
$retval
=
WP_CONTENT_DIR
;
}
else
if
(
$type
==
'gallery'
)
{
$root_type
=
defined
(
'NGG_GALLERY_ROOT_TYPE'
)
?
NGG_GALLERY_ROOT_TYPE
:
'site'
;
if
(
$root_type
==
'content'
)
function
get_document_root
(
$type
=
'root'
)
{
$retval
=
NULL
;
switch
(
$type
)
{
case
'plugins'
:
case
'plugin'
:
$retval
=
WP_PLUGIN_DIR
;
break
;
case
'plugins_mu'
:
case
'plugin_mu'
:
$retval
=
WPMU_PLUGIN_DIR
;
break
;
case
'templates'
:
case
'template'
:
case
'themes'
:
case
'theme'
:
$retval
=
get_template_directory
();
break
;
case
'styles'
:
case
'style'
:
case
'stylesheets'
:
case
'stylesheet'
:
$retval
=
get_stylesheet_directory
();
break
;
case
'content'
:
$retval
=
WP_CONTENT_DIR
;
else
break
;
case
'gallery'
:
case
'galleries'
:
$root_type
=
defined
(
'NGG_GALLERY_ROOT_TYPE'
)
?
NGG_GALLERY_ROOT_TYPE
:
'site'
;
if
(
$root_type
==
'content'
)
$retval
=
WP_CONTENT_DIR
;
else
$retval
=
$this
->
_document_root
;
break
;
default
:
$retval
=
$this
->
_document_root
;
}
else
if
(
empty
(
$type
)
||
$type
==
'root'
)
{
$retval
=
$this
->
_document_root
;
}
else
{
$retval
=
$this
->
_document_root
;
}
if
(
strtoupper
(
substr
(
PHP_OS
,
0
,
3
))
===
'WIN'
)
$retval
=
str_replace
(
'/'
,
DIRECTORY_SEPARATOR
,
$retval
);
return
$retval
;
}
}
/**
* Sets the document root for this application
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/mvc/adapter.mvc_fs.php
View file @
5866efac
...
...
@@ -26,7 +26,18 @@ class A_MVC_Fs extends Mixin
// Get the relative path, if asked. Skip when docroot=/ lest we generate url like
// wp-contentpluginsnextgen-galleryproducts..
if
(
$relative
)
$path
=
str_replace
(
$fs
->
get_document_root
(
'plugins'
),
''
,
$path
);
if
(
$relative
)
{
$original_length
=
strlen
(
$path
);
$roots
=
array
(
'plugins'
,
'plugins_mu'
,
'templates'
,
'stylesheets'
);
$found_root
=
FALSE
;
foreach
(
$roots
as
$root
)
{
$path
=
str_replace
(
$this
->
object
->
get_document_root
(
$root
),
''
,
$path
);
if
(
strlen
(
$path
)
!=
$original_length
)
{
$found_root
=
$root
;
break
;
}
}
}
return
$path
;
}
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/mvc/adapter.mvc_router.php
View file @
5866efac
...
...
@@ -10,16 +10,40 @@ class A_MVC_Router extends Mixin
*/
function
get_static_url
(
$path
,
$module
=
FALSE
)
{
$retval
=
''
;
// Determine the base url
$base_url
=
$this
->
object
->
get_base_url
(
'plugins'
);
$base_url
=
$this
->
object
->
remove_url_segment
(
'/index.php'
,
$base_url
);
// Find the module directory
$fs
=
$this
->
object
->
get_registry
()
->
get_utility
(
'I_Fs'
);
$path
=
$fs
->
find_static_abspath
(
$path
,
$module
);
// Convert the path to a relative path
$original_length
=
strlen
(
$path
);
$roots
=
array
(
'plugins'
,
'plugins_mu'
,
'templates'
,
'stylesheets'
);
$found_root
=
FALSE
;
foreach
(
$roots
as
$root
)
{
$path
=
str_replace
(
$fs
->
get_document_root
(
$root
),
''
,
$path
);
if
(
strlen
(
$path
)
!=
$original_length
)
{
$found_root
=
$root
;
break
;
}
}
if
(
$found_root
)
{
$retval
=
$this
->
object
->
join_paths
(
$this
->
object
->
get_base_url
(
$found_root
),
str_replace
(
"
\\
"
,
'/'
,
$path
)
);
}
else
{
//TODO: What do we do here?
}
return
$this
->
join_paths
(
$base_url
,
str_replace
(
"
\\
"
,
'/'
,
$fs
->
find_static_abspath
(
$path
,
$module
,
TRUE
))
);
return
$retval
;
}
}
\ No newline at end of file
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/mvc/class.mvc_option_handler.php
View file @
5866efac
...
...
@@ -3,7 +3,20 @@
class
C_Mvc_Option_Handler
{
function
get
(
$option
,
$default
=
NULL
)
{
return
implode
(
DIRECTORY_SEPARATOR
,
array
(
dirname
(
__FILE__
),
'templates'
));
{
$retval
=
$default
;
switch
(
$option
)
{
case
'mvc_template_dir'
:
case
'mvc_template_dirname'
:
$retval
=
'/templates'
;
break
;
case
'mvc_static_dirname'
:
case
'mvc_static_dir'
:
$retval
=
'/static'
;
break
;
}
return
$retval
;
}
}
\ No newline at end of file
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/mvc/class.mvc_view.php
View file @
5866efac
...
...
@@ -240,8 +240,7 @@ class Mixin_Mvc_View_Instance_Methods extends Mixin
$path
=
$path
.
'.php'
;
$retval
=
$fs
->
join_paths
(
$fs
->
get_document_root
(
'plugins'
),
$this
->
object
->
get_registry
()
->
get_module_dir
(
$module
),
$this
->
object
->
get_registry
()
->
get_module_dir
(
$module
),
$settings
->
mvc_template_dirname
,
$path
);
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/mvc/module.mvc.php
View file @
5866efac
...
...
@@ -27,13 +27,21 @@ class M_MVC extends C_Base_Module
"http://www.photocrati.com"
);
include_once
(
'class.mvc_installer.php'
);
C_Photocrati_Installer
::
add_handler
(
$this
->
module_id
,
'C_Mvc_Installer'
);
include_once
(
'class.mvc_option_handler.php'
);
C_NextGen_Settings
::
add_option_handler
(
'C_Mvc_Option_Handler'
,
array
(
'mvc_template_dir'
C_NextGen_Settings
::
get_instance
()
->
add_option_handler
(
'C_Mvc_Option_Handler'
,
array
(
'mvc_template_dir'
,
'mvc_template_dirname'
,
'mvc_static_dir'
,
'mvc_static_dirname'
));
if
(
is_multisite
())
C_NextGen_Global_Settings
::
get_instance
()
->
add_option_handler
(
'C_Mvc_Option_Handler'
,
array
(
'mvc_template_dir'
,
'mvc_template_dirname'
,
'mvc_static_dir'
,
'mvc_static_dirname'
));
}
function
_register_utilities
()
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_admin/module.nextgen_admin.php
View file @
5866efac
...
...
@@ -29,11 +29,16 @@ class M_NextGen_Admin extends C_Base_Module
C_Photocrati_Installer
::
add_handler
(
$this
->
module_id
,
'C_NextGen_Admin_Installer'
);
include_once
(
'class.nextgen_admin_option_handler.php'
);
C_NextGen_Settings
::
add_option_handler
(
'C_NextGen_Admin_Option_Handler'
,
array
(
C_NextGen_Settings
::
get_instance
()
->
add_option_handler
(
'C_NextGen_Admin_Option_Handler'
,
array
(
'jquery_ui_theme'
,
'jquery_ui_theme_version'
,
'jquery_ui_theme_url'
));
if
(
is_multisite
())
C_NextGen_Global_Settings
::
get_instance
()
->
add_option_handler
(
'C_NextGen_Admin_Option_Handler'
,
array
(
'jquery_ui_theme'
,
'jquery_ui_theme_version'
,
'jquery_ui_theme_url'
));
}
/**
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_album/module.nextgen_basic_album.php
View file @
5866efac
...
...
@@ -18,7 +18,7 @@ class M_NextGen_Basic_Album extends C_Base_Module
'photocrati-nextgen_basic_album'
,
'NextGEN Basic Album'
,
"Provides support for NextGEN's Basic Album"
,
'0.
7
'
,
'0.
9
'
,
'http://nextgen-gallery.com'
,
'Photocrati Media'
,
'http://www.photocrati.com'
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/module.nextgen_basic_gallery.php
View file @
5866efac
...
...
@@ -25,7 +25,7 @@ class M_NextGen_Basic_Gallery extends C_Base_Module
'photocrati-nextgen_basic_gallery'
,
'NextGEN Basic Gallery'
,
"Provides NextGEN Gallery's basic thumbnail/slideshow integrated gallery"
,
'0.
9
'
,
'0.
11
'
,
'http://www.nextgen-gallery.com'
,
'Photocrati Media'
,
'http://www.photocrati.com'
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_imagebrowser/module.nextgen_basic_imagebrowser.php
View file @
5866efac
...
...
@@ -19,7 +19,7 @@ class M_NextGen_Basic_ImageBrowser extends C_Base_Module
'photocrati-nextgen_basic_imagebrowser'
,
'NextGEN Basic ImageBrowser'
,
'Provides the NextGEN Basic ImageBrowser Display Type'
,
'0.
7
'
,
'0.
9
'
,
'http://www.nextgen-gallery.com'
,
'Photocrati Media'
,
'http://www.photocrati.com'
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_singlepic/module.nextgen_basic_singlepic.php
View file @
5866efac
...
...
@@ -17,7 +17,7 @@ class M_NextGen_Basic_Singlepic extends C_Base_Module
NGG_BASIC_SINGLEPIC
,
'NextGen Basic Singlepic'
,
'Provides a singlepic gallery for NextGEN Gallery'
,
'0.
7
'
,
'0.
9
'
,
'http://www.photocrati.com'
,
'Photocrati Media'
,
'http://www.photocrati.com'
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_tagcloud/module.nextgen_basic_tagcloud.php
View file @
5866efac
...
...
@@ -17,7 +17,7 @@ class M_NextGen_Basic_Tagcloud extends C_Base_Module
NGG_BASIC_TAGCLOUD
,
'NextGen Basic Tagcloud'
,
'Provides a tagcloud for NextGEN Gallery'
,
'0.
7
'
,
'0.
9
'
,
'http://www.photocrati.com'
,
'Photocrati Media'
,
'http://www.photocrati.com'
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_settings/module.nextgen_settings.php
View file @
5866efac
...
...
@@ -17,7 +17,7 @@ class M_NextGen_Settings extends C_Base_Module
'photocrati-nextgen_settings'
,
'NextGEN Gallery Settings'
,
'Provides central management for NextGEN Gallery settings'
,
'0.
5
'
,
'0.
8
'
,
'http://www.nextgen-gallery.com'
,
'Photocrati Media'
,
'http://www.photocrati.com'
...
...
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/css/nggadmin.css
View file @
5866efac
...
...
@@ -203,13 +203,13 @@ p#ngg-inlinebutton {
#ngg-listimages
.column-1
,
#ngg-listimages
.column-2
{
width
:
3
%
;
min-width
:
33px
;