Skip to content

Instantly share code, notes, and snippets.

@sarciszewski
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarciszewski/6e7f7e7c3d3e3aafe458 to your computer and use it in GitHub Desktop.
Save sarciszewski/6e7f7e7c3d3e3aafe458 to your computer and use it in GitHub Desktop.
Raymond Benc (moxi9 - PHPFox) - PHP Sadness
/**
* Found in static/ajax.php
*/
/* ... */
$sUserProfileImage = Phpfox::getLib('image.helper')->display(array_merge(array('user' => Phpfox::getService('user')->getUserFields(true)), array(
'path' => 'core.url_user',
'file' => Phpfox::getUserBy('user_image'),
'suffix' => '_50_square',
'max_width' => 50,
'max_height' => 50
)
)
);
/* ... */
/**
* Found in static/ajax.php
*/
/* ... */
$sUserProfileImage = Phpfox::getLib('image.helper')->display(
array_merge(
array(
'user' => Phpfox::getService('user')->getUserFields(true)
),
array(
'path' => 'core.url_user',
'file' => Phpfox::getUserBy('user_image'),
'suffix' => '_50_square',
'max_width' => 50,
'max_height' => 50
)
)
);
/* ... */
/**
* Found in static/ajax.php
*/
/* ... */
$sUserProfileImage = Phpfox::getLib('image.helper')->display(
array(
'user' => Phpfox::getService('user')->getUserFields(true),
'path' => 'core.url_user',
'file' => Phpfox::getUserBy('user_image'),
'suffix' => '_50_square',
'max_width' => 50,
'max_height' => 50
)
);
/* ... */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment