XOOPS Cube weblinks モジュールのハッキング
登録データを編集する際のフォーム生成プロセス
modlink.php 修正用コントローラ
+ print_modify_form() //修正ビューの生成
+ show_user_form()
+ $this->_link_form_handler->show_user_form()
+ $this->_load_define();
+ $this->_linkitem_define_handler->load();
実体:weblinks_get_handler( 'linkitem_define', $dirname );
の実体:happy_linux_get_handler($name, $module_dir, 'weblinks');
⬆class
$class = 'weblinks_linkitem_define_handler';
これが呼ばれる。結果、
weblinks_linkitem_define_handler.php の load() 関数が呼び出される。
2012年2月25日土曜日
2012年2月14日火曜日
galleria 1.2.6js bug
galleria 1.2.6js bug
Error message : Could not extract width/height from image: brabra.....
Before
// Delay the callback to "fix" the Adblock Bug
// http://code.google.com/p/adblockforchrome/issues/detail?id=3701
if ( ( !this.width || !this.height ) ) {
window.setTimeout( (function( img ) {
return function() {
if ( img.width && img.height ) {
complete.call( img );
} else {
Galleria.raise('Could not extract width/height from image: ' + img.src +
'. Traced measures: width:' + img.width + 'px, height: ' + img.height + 'px.');
}
};
}( this )), 2);
} else {
complete.call( this );
}
After
// Delay the callback to "fix" the Adblock Bug
// http://code.google.com/p/adblockforchrome/issues/detail?id=3701
if ( ( !this.width || !this.height ) ) {
window.setTimeout( (function( img ) {
return function() {
if ( img.width && img.height ) {
complete.call( img );
} else {
try {
$('<img/>').attr('src',$(img).attr("src")).load(function() {complete.call( this )})
} catch(error_message) {
Galleria.raise('Could not extract width/height from image: ' + img.src +
'. Traced measures: width:' + img.width + 'px, height: ' + img.height + 'px.');
}
}
};
}( this )), 2);
} else {
complete.call( this );
}
Error message : Could not extract width/height from image: brabra.....
Before
// Delay the callback to "fix" the Adblock Bug
// http://code.google.com/p/adblockforchrome/issues/detail?id=3701
if ( ( !this.width || !this.height ) ) {
window.setTimeout( (function( img ) {
return function() {
if ( img.width && img.height ) {
complete.call( img );
} else {
Galleria.raise('Could not extract width/height from image: ' + img.src +
'. Traced measures: width:' + img.width + 'px, height: ' + img.height + 'px.');
}
};
}( this )), 2);
} else {
complete.call( this );
}
After
// Delay the callback to "fix" the Adblock Bug
// http://code.google.com/p/adblockforchrome/issues/detail?id=3701
if ( ( !this.width || !this.height ) ) {
window.setTimeout( (function( img ) {
return function() {
if ( img.width && img.height ) {
complete.call( img );
} else {
try {
$('<img/>').attr('src',$(img).attr("src")).load(function() {complete.call( this )})
} catch(error_message) {
Galleria.raise('Could not extract width/height from image: ' + img.src +
'. Traced measures: width:' + img.width + 'px, height: ' + img.height + 'px.');
}
}
};
}( this )), 2);
} else {
complete.call( this );
}
登録:
投稿 (Atom)