~xibo-maintainers/xibo/tuttle

« back to all changes in this revision

Viewing changes to server/lib/pages/index.class.php

  • Committer: Dan Garner
  • Date: 2014-10-21 16:07:57 UTC
  • mfrom: (345.2.61 server-170-alpha2)
  • Revision ID: dan@xibo.org.uk-20141021160757-vbg562lzvp24dxm4
[cms] Merged lp:~dangarner/xibo/server-170-alpha2

Show diffs side-by-side

added added

removed removed

Lines of Context:
264
264
        $response->AddButton(__('Close'), 'XiboDialogClose()');
265
265
        $response->Respond();
266
266
    }
 
267
 
 
268
    function ExchangeGridTokenForFormToken() {
 
269
 
 
270
        // Check our grid token against the one provided.
 
271
        if (!Kit::CheckToken('gridToken'))
 
272
            die(__('Sorry the form has expired. Please refresh.'));
 
273
 
 
274
        echo Kit::Token('token', false);
 
275
        exit();
 
276
    }
267
277
}
268
278
?>