Advertisement
Underworld1337

Untitled

Oct 16th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // wuuzzaa
  2. function table(opt, io){
  3. /*{
  4.     'files':[{
  5.             'name':[{
  6.                 'name':'filename.php',
  7.                 'path': 'path/to/file',
  8.                 'size':95458756, //bytes
  9.                 'owners':[1,7,23], // user-id from site
  10.                 'rev':6
  11.             }],
  12.             //...........................
  13.             //...........................
  14.             //...........................
  15.         }
  16.     ]
  17.   }*/
  18.   var files = {}, // object of all files.
  19. /*{
  20.     prevs':[{
  21.             'prevs':[{
  22.                 'name':'filename.php',
  23.                 'path': 'path/to/file',
  24.             }]
  25.         }
  26.     ]
  27.   }*/
  28.       prevs = {}; // cto
  29.   this.get_file = function(path, filename, owner){
  30.   }
  31.   this.get_owner_trust = function(path, filename){
  32.   }
  33.   this.update_clients_file = function(client, path, filename){
  34.   }
  35. }
  36. // magic is over :P
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement