Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Create own iframes into backend


Go to End


2 Posts   1504 Views

Avatar
dataforlife

Community Member, 10 Posts

16 September 2011 at 5:04am

Hallo,

my question is, if i can create my own iframes like the image upload iframe.

I would like to create some other forms, uploads and databases by myself with php an then integrate it into the backend.

I could do this by use the LiteralField to add the iframe, but by this way the iframe source isn't protected by the cms password.
The FileUpload-Iframe is protected by the cms password, so i would like to build my own save iframe.

Is it possible?

I hope you understand, what i mean

thanks a lot!

OR: ist there a way to check by SESSION (perhaps) if an admin/user is logged in?

thx

Avatar
swaiba

Forum Moderator, 1899 Posts

29 September 2011 at 12:33am

OR: ist there a way to check by SESSION (perhaps) if an admin/user is logged in?

You can use this...

	$_SESSION['loggedInAs'];

... if it is set then someone is logged in.