AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Closed] Add own php to wpforo

1 Posts
1 Users
0 Reactions
1,387 Views
Posts: 5
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@tomst)
Active Member
Joined: 7 years ago
[#11127]

Hey,

I recently write an own php file, which archive old topics. (Move to an other forum)

The script works well, but I have an little problem.

I want to add the file to a dir, which I can access from any user (e.g. guest) via cronjob. So I can't use wpf-admin, which I tried first.

Is there any place where I can add the file? Currently I used

if(isSet($_GET['archiveTopic']) && <snip key validation>){include (archiveTopics.php);}

in the forums class..

But I'm not happy with this solution.. Is there any usually-used method to do something like that? 

FYI: I need access to WPF(), so I can't access to this file directly. As mentioned above, I have to have access with the guest user.

Thanks in advance 

(Hopefully this is the correct forum)


Share: