Permalink
Browse files

Deleted old modules

  • Loading branch information...
1 parent 5ae8fa7 commit 672200e70216ffe453d081f43106647879e1935b @deepwinter deepwinter committed May 10, 2011
Showing with 0 additions and 7,187 deletions.
  1. +0 −304 modules/gms/controllers/gms.php
  2. +0 −107 modules/gms/controllers/gms_filebrowser.php
  3. +0 −57 modules/gms/controllers/gms_work.class.php
  4. +0 −33 modules/gms/gms.contents.php
  5. +0 −130 modules/gms/gms.css
  6. +0 −225 modules/gms/gms.js
  7. +0 −9 modules/gms/gms_filebrowser.contents.php
  8. +0 −146 modules/gms/gms_filebrowser.js
  9. BIN modules/gms/images/icon_delete.gif
  10. BIN modules/gms/images/icon_delete_hover.gif
  11. BIN modules/gms/images/img_bg.gif
  12. +0 −20 modules/gms/settings/working.settings.php
  13. +0 −35 modules/gms/views/gms.php
  14. +0 −58 modules/gms/views/gms_filebrowser.php
  15. +0 −13 modules/gms/views/gms_image.php
  16. +0 −12 modules/listmodule/config/listmodule.php
  17. +0 −24 modules/listmodule/config/listmodule_example.php
  18. +0 −51 modules/listmodule/models/list.php
  19. +0 −397 modules/listmodule/views/listmodule.js
  20. +0 −17 modules/listmodule/views/listmodule.php
  21. +0 −24 modules/listmodule/views/listmodule_item.php
  22. +0 −15 modules/mopmvc/config/adminpage.php
  23. +0 −29 modules/mopmvc/config/data.dtd
  24. +0 −32 modules/mopmvc/config/frontend.dtd
  25. +0 −51 modules/mopmvc/config/homepagesample.txt
  26. +0 −10 modules/mopmvc/config/mop.php
  27. +0 −163 modules/mopmvc/config/objects.dtd
  28. +0 −17 modules/mopmvc/controllers/accessdenied.php
  29. +0 −7 modules/mopmvc/controllers/adminheader.php
  30. +0 −208 modules/mopmvc/controllers/display.php
  31. +0 −26 modules/mopmvc/controllers/displayadmin.php
  32. +0 −26 modules/mopmvc/controllers/displaylogin.php
  33. +0 −25 modules/mopmvc/controllers/displaypublic.php
  34. +0 −18 modules/mopmvc/controllers/error.php
  35. +0 −14 modules/mopmvc/controllers/msielanding.php
  36. +0 −7 modules/mopmvc/controllers/publicheader.php
  37. +0 −52 modules/mopmvc/controllers/publicnav.php
  38. +0 −93 modules/mopmvc/controllers/site.php
  39. 0 modules/mopmvc/controllers/virtual.php
  40. +0 −54 modules/mopmvc/helpers/frontend.php
  41. +0 −313 modules/mopmvc/helpers/mop.php
  42. +0 −29 modules/mopmvc/hooks/MOP_HTTP_Errors.php
  43. +0 −29 modules/mopmvc/hooks/mopready.php
  44. +0 −61 modules/mopmvc/hooks/protocolrouting.php
  45. +0 −19 modules/mopmvc/hooks/routingchain.php
  46. +0 −97 modules/mopmvc/hooks/slugs.php
  47. +0 −56 modules/mopmvc/hooks/staging.php
  48. +0 −46 modules/mopmvc/hooks/virtualmodules.php
  49. +0 −26 modules/mopmvc/i18n/en_US/form_errors.php
  50. +0 −21 modules/mopmvc/libraries/Database_Expr.php
  51. +0 −31 modules/mopmvc/libraries/DisplayView.php
  52. +0 −575 modules/mopmvc/libraries/MOP_Controller.php
  53. +0 −89 modules/mopmvc/libraries/MOP_DataQuery.php
  54. +0 −95 modules/mopmvc/libraries/MOP_ORM.php
  55. +0 −150 modules/mopmvc/libraries/MOP_View.php
  56. +0 −157 modules/mopmvc/libraries/MY_Database.php
  57. +0 −1 modules/mopmvc/views/404.php
  58. +0 −4 modules/mopmvc/views/accessdenied.php
  59. 0 modules/mopmvc/views/adminfooter.php
  60. +0 −1 modules/mopmvc/views/adminheader.php
  61. +0 −37 modules/mopmvc/views/adminpage.php
  62. +0 −16 modules/mopmvc/views/default.php
  63. +0 −22 modules/mopmvc/views/loginpage.php
  64. +0 −122 modules/mopmvc/views/msielanding.php
  65. 0 modules/mopmvc/views/publicfooter.php
  66. +0 −1 modules/mopmvc/views/publicheader.php
  67. +0 −13 modules/mopmvc/views/publicnav.php
  68. +0 −27 modules/mopmvc/views/publicpage.php
  69. +0 −5 modules/mopsite/config/formmail.php
  70. +0 −19 modules/mopsite/controllers/formmail.php
  71. +0 −5 modules/mopsite/controllers/mop_contact.php
  72. +0 −29 modules/mopsite/views/contact.php
  73. +0 −52 modules/oldAuth/config/auth.php
  74. +0 −189 modules/oldAuth/controllers/auth.php
  75. +0 −113 modules/oldAuth/controllers/auth_demo.php
  76. +0 −12 modules/oldAuth/controllers/keepalive.php
  77. +0 −11 modules/oldAuth/i18n/en_US/auth.php
  78. +0 −228 modules/oldAuth/libraries/Auth.php
  79. +0 −63 modules/oldAuth/libraries/drivers/Auth.php
  80. +0 −134 modules/oldAuth/libraries/drivers/Auth/File.php
  81. +0 −195 modules/oldAuth/libraries/drivers/Auth/ORM.php
  82. +0 −20 modules/oldAuth/models/auth_role.php
  83. +0 −46 modules/oldAuth/models/auth_user.php
  84. +0 −102 modules/oldAuth/models/auth_user_token.php
  85. +0 −7 modules/oldAuth/models/role.php
  86. +0 −61 modules/oldAuth/models/user.php
  87. +0 −7 modules/oldAuth/models/user_token.php
  88. +0 −19 modules/oldAuth/views/auth/forgot.php
  89. +0 −61 modules/oldAuth/views/auth/install.php
  90. +0 −14 modules/oldAuth/views/auth/template.php
  91. +0 −1 modules/oldAuth/views/noaccess.php
  92. +0 −135 modules/yaml/lib/sfYaml.php
  93. +0 −60 modules/yaml/lib/sfYamlDumper.php
  94. +0 −442 modules/yaml/lib/sfYamlInline.php
  95. +0 −610 modules/yaml/lib/sfYamlParser.php
@@ -1,304 +0,0 @@
-<?
-require_once('../includes/resample.php');
-
-class GMS_Controller extends Controller{
-
- var $gallerytable = 'galleries';
- var $imagetable = 'gallery_images';
-
- var $gms_resize = array(
- 'tag' => 'thumb',
- 'width'=> 160,
- 'height'=>117,
- 'prefix'=>'thumb_',
- 'forceheight'=> true,
- );
-
- function GMS($featurettename, $arguments=null){
- parent::Featurette($featurettename);
- $this->galleryid = $_REQUEST['galleryid'];
- $this->assigns['galleryid'] = $_REQUEST['galleryid'];
-
- if($arguments){
- $this->instance = $arguments['instance'];
- } else {
- $this->instance = $_REQUEST['instance'];
- }
- if($this->instance == 'undefined'){
- $this->instance = NULL;
- }
-
- if($this->instance){
- require('../modules/gms/settings/'.$this->instance.'.settings.php');
- $this->setup = $settings;
- }
- $this->setup[] = $this->gms_resize;
- }
-
- function buildFeaturette(){
- parent::buildFeaturette();
- if($this->galleryid){
- $gallery = DB_DataObject::factory($this->gallerytable);
- $gallery->galleryid = $this->galleryid;
- if(!$gallery->find(true)){
- $gallery = DB_DataObject::factory($this->gallerytable);
- $gallery->galleryid = $this->galleryid;
- $gallery->insert();
- }
- $data = $gallery->toArray();
- foreach($data as $name => $value){
- $this->assigns[$name] = $value;
- }
- }
- $galleries = DB_DataObject::factory($this->gallerytable);
- $galleries->find();
- $this->assigns['galleries'] = array();
- while($galleries->fetch()){
- $this->assigns['galleries'][] = $galleries->toArray();
- }
- }
-
- function doActions(){
- switch($_REQUEST['action']){
- case 'add':
- $gallery = DB_DataObject::factory($this->gallerytable);
- $gallery->title = 'New Gallery';
- $this->galleryid = $gallery->insert();
- break;
- }
- }
-
- function getImageData($imageobj){
- $data = $imageobj->toArray();
-
- $imageid = $imageobj->imageid;
- foreach($this->setup as $setup){
- $data[$setup['tag'].'src'] = 'galleryimage_'.$setup['prefix'].$imageid.'.jpg';
- if(file_exists(FULLPATH.'/../media/'.'galleryimage_'.$setup['prefix'].$imageid.'.jpg')){
- $size = getImageSize(FULLPATH.'/../media/'.'galleryimage_'.$setup['prefix'].$imageid.'.jpg');
- $data[$setup['tag'].'width'] = $size[0];
- $data[$setup['tag'].'height'] = $size[1];
- }
- }
- return $data;
- }
-
- function doAjax(){
- switch($_REQUEST['action']){
- case 'load':
- $this->buildFeaturette();
- return $this->toHTML();
- break;
- case 'initgms':
- $gimages = DB_DataObject::factory($this->imagetable);
- $gimages->galleryid = $this->galleryid;
- $gimages->orderby('sortorder');
- $gimages->find();
-
- $html='';
- $data=array();
-
- while($gimages->fetch()){
- $this->assigns['image'] = $gimages->toArray();
- $this->loadTemplate('gms_image');
- $html .= $this->toHTML();
- $data[] = $this->getImageData($gimages);
- }
- $output = array('data'=>$data, 'html'=>$html);
-
- // header('Content-type: text/x-json');
- $json = new Services_JSON();
- $output = $json->encode($output);
- return $output;
-
- break;
- case 'addimage':
-
- $filename = FULLPATH.'/../uploads/'.$_REQUEST['newimage'];
- $gimage = DB_DataObject::factory($this->imagetable);
- $gimage->galleryid = $_REQUEST['galleryid'];
-// $exif = read_exif_data( $filename );
-// $gimage->photographer = $exif['IFD0']['Copyright'];
-// $date = explode(' ', $exif['DateTime']);
-// $date = $date[0];
-// $gimage->copyright_date = $date;
-
-
- $imagename = explode('/', $_REQUEST['newimage']);
- $gimage->title = $imagename[count($imagename)-1];
- $imageid = $gimage->insert();
-
- if(file_exists($filename) ) {
- $dimensions = getimagesize( $filename );
- $img_width = $dimensions[0];
- $img_height = $dimensions[1];
- }
-
-
- foreach($this->setup as $resize){
-
- //if the original image is smaller than the resize, don't resize it at all
- if($img_width <= $resize['width'] && $img_height <= $resize['height'] ) {
- copy( $filename, FULLPATH.'/../media/'.'galleryimage_'.$resize['prefix'].$imageid.'.jpg');
- continue;
- }
-
-
-
- if($img_width < $resize['width'] && $resize['forcewidth'] && $resize['height']){
- $resize['forcewidth'] = false;
- $resize['forceheight'] = true;
- } else if($img_height < $resize['height'] && $resize['forceheight'] && $resize['width']){
- $resize['forcewidth'] = true;
- $resize['forceheight'] = false;
- }
-
- //set up sizes
- if($resize['forcewidth']&&$resize['forceheight']){
- $height = $resize['height'];
- $width = $resize['width'];
- } else {
- //maintain aspect ratio
- if( (!$resize['forcewidth'] && ($img_width > $img_height) ) // might just be able to say, are we streching, and if so, skip and then just copy at the end..
-
- || $resize['forceheight'] ){
-
- //if image will strech vertically but there's no width set, don't resize
- if($img_height < $resize['height'] && !$resize['width']){
- copy( $filename, FULLPATH.'/../media/'.'galleryimage_'.$resize['prefix'].$imageid.'.jpg');
- continue;
- }
-
- //go ahead and resize
- $height = $resize['height'];
- $width = $resize['height']/$img_height * $img_width;
- } else {
-
- //if the image will stretch horizontally but there is not height set, don't resize
- if($img_width < $resize['width'] && !$resize['height']){
- copy( $filename, FULLPATH.'/../media/'.'galleryimage_'.$resize['prefix'].$imageid.'.jpg');
- continue;
- }
-
- //go ahead and resize it
- $height = $resize['width']/$img_width * $img_height;
- $width = $resize['width'];
- }
- }
-// error_log("$width $height ");
-
-
- resampimagejpg( $width, $height, $filename, FULLPATH.'/../media/'.'galleryimage_'.$resize['prefix'].$imageid.'.jpg', '0');
- chmod(FULLPATH.'/../media/'.'galleryimage_'.$resize['prefix'].$imageid.'.jpg', 0777);
- }
-
-
- $gimage = DB_DataObject::factory($this->imagetable);
- $gimage->get($imageid);
-
-
- // convert a complex value to JSON notation
-
- $this->loadTemplate('gms_image');
- $imageinfo = $gimage->toArray();
- $this->assigns['image'] = $imageinfo;
- $this->assigns['width'] = $resize['width']; // value no exist! $thumbwidth;
- $this->assigns['height'] = $resize['height']; // value no exist! $thumbheight;
- $html = $this->toHTML();
-
- $data = $this->getImageData($gimage);
-
- $output = array();
- $output['html'] = "$html";
- $output['data'] = $data;
-
- $json = new Services_JSON();
- $output = $json->encode($output);
-
- header('Content-type: text/x-json');
- return $output;
- break;
- case 'saveSortOrder':
- $order = explode(',', $_REQUEST['sortorder']);
-
- for($i=0; $i<count($order); $i++){
- $image = DB_DataObject::factory($this->imagetable);
- $image->imageid = $order[$i];
- $image->find(true);
- $orig = clone($image);
- $image->sortorder = $i+1;
- $image->update();
- }
- break;
-
- case 'delete':
- $image = DB_DataObject::factory($this->imagetable);
- $image->get($_REQUEST['imageid']);
- $image->imageid = $_REQUEST['imageid'];
- $images->galleryid = $_REQUEST['galleryid'];
- $image->delete();
- foreach($this->setup as $setup){
- unlink('galleryimage_'.$setup['prefix'].$_REQUEST['imageid'].'.jpg');
- }
- break;
-
- case 'deleteGallery':
- $gallery = DB_DataObject::factory($this->gallerytable);
- $gallery->galleryid = $_REQUEST['galleryid'];
- $gallery->delete();
- $images = DB_DataObject::factory($this->imagetable);
- $images->galleryid = $_REQUEST['galleryid'];
- $images->find();
- while($images->fetch()){
- foreach($this->setup as $setup){
- unlink('galleryimage_'.$setup['prefix'].$images->imageid.'.jpg');
- $dimage = DB_DataObject::factory($this->imagetable);
- $dimage->imageid = $images->imageid;
- $dimage->delete();
- }
- }
- break;
-
- case 'savefield':
- $gallery = DB_DataObject::factory($this->gallerytable);
- $gallery->get($_REQUEST['galleryid']);
- $orig = clone($gallery);
-
- //request string to see what fields are present
- if($_REQUEST['field']){
- $gallery->$_REQUEST['field'] = $_REQUEST['value'];
- } else {
- foreach($orig->toArray as $field=>$value){
- $gallery->$field = $_REQUEST[$field];
- }
- }
- $gallery->update($orig);
- $gallery = DB_DataObject::factory($this->gallerytable);
- $gallery->get($_REQUEST['galleryid']);
- return $gallery->$_REQUEST['field'];
- break;
-
- case 'saveimagefield':
- $image = DB_DataObject::factory($this->imagetable);
- $image->get($_REQUEST['imageid']);
- $orig = clone($image);
-
- //request string to see what fields are present
- if($_REQUEST['field']){
- $image->$_REQUEST['field'] = $_REQUEST['value'];
- } else {
- foreach($orig->toArray as $field=>$value){
- $image->$field = $_REQUEST[$field];
- }
- }
- $image->update($orig);
- $image = DB_DataObject::factory($this->imagetable);
- $image->get($_REQUEST['imageid']);
- return $image->$_REQUEST['field'];
- break;
- }
- }
-
-}
-
-?>
Oops, something went wrong.

0 comments on commit 672200e

Please sign in to comment.