[Xerte] Re: Fwd: Function split() is deprecated

Pat Lockley patrick.lockley at googlemail.com
Fri Jun 29 15:38:40 BST 2012


here is play.php (for modules/xerte)

On Fri, Jun 29, 2012 at 3:13 PM, Pat Lockley
<patrick.lockley at googlemail.com> wrote:
> Am sourcing file
>
> Not sure on 1.8 - I think "soon" is the best answer I could give. (I'd
> start a new topic with that as the subject).
>
> On Fri, Jun 29, 2012 at 3:07 PM, Simon Barne <simonbarne at gmail.com> wrote:
>> I think play.php may be the new one, though I don't have an older one.
>> I've rather lost track of the changes we made.
>>
>> When will 1.8 be ready?
>>
>>
>>
>> On 29 June 2012 14:53, Pat Lockley <patrick.lockley at googlemail.com> wrote:
>>> Module functions is the new play.php - not your original one?
>>>
>>> Depreciation - you're going to hit a lot of those problems as you've
>>> gone to php 5.3. You probably should upgrade
>>> but I would wait for 1.8
>>>
>>> On Fri, Jun 29, 2012 at 2:45 PM, Simon Barne <simonbarne at gmail.com> wrote:
>>>> More progress! I can now log in and edit templates.
>>>>
>>>> If I try to play them, however, I get:
>>>>
>>>> Fatal error: require() [function.require]: Failed opening required
>>>> 'module_functions.php' (include_path='.:/usr/local/php53/pear') in
>>>> /home/intouea8/public_html/xerte/play.php on line 3
>>>>
>>>> Also, under Project properties > Access:
>>>>
>>>> Deprecated: Function mysql_db_query() is deprecated in
>>>> /home/intouea8/public_html/xerte/website_code/php/properties/access_template.php
>>>> on line 61
>>>>
>>>> Deprecated: mysql_db_query() [function.mysql-db-query]: This function
>>>> is deprecated; use mysql_query() instead in
>>>> /home/intouea8/public_html/xerte/website_code/php/properties/access_template.php
>>>> on line 61
>>>>
>>>> (For some reason database.php seemed to contain data from old,
>>>> long-deleted installations of Xerte. Could this be the reason we
>>>> weren't able to install version 1.7?)
>>>>
>>>>
>>>>
>>>> On 29 June 2012 14:17, Pat Lockley <patrick.lockley at googlemail.com> wrote:
>>>>>
>>>>> well that code is still there :)
>>>>>
>>>>> So you need to revert to the old config.php and the old switch / index.php
>>>>>
>>>>> On Fri, Jun 29, 2012 at 2:15 PM, Simon Barne <simonbarne at gmail.com> wrote:
>>>>> > Progress! Sort of.
>>>>> >
>>>>> > Both the database host and database name looked wrong in database.php, so
>>>>> > I've changed them to what I thought might be the right ones.
>>>>> >
>>>>> > Now I can log in, though I get these messages at the top of the page:
>>>>> >
>>>>> >
>>>>> > BEFORE CONFIG
>>>>> > before database
>>>>> > post database
>>>>> > post connection
>>>>> >
>>>>> > before selection
>>>>> > POST CONFIG
>>>>> > POST SESSION
>>>>> > POST INCLUDES
>>>>> >
>>>>> > I can't edit any templates and their properties are blank. If I try to edit
>>>>> > one, I get this message:
>>>>> >
>>>>> >
>>>>> > before database
>>>>> > post database
>>>>> > post connection
>>>>> >
>>>>> > before selection
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > This message and any attachment are intended solely for the addressee and
>>>>> > may contain confidential information. If you have received this message in
>>>>> > error, please send it back to me, and immediately delete it. Please do not
>>>>> > use, copy or disclose the information contained in this message or in any
>>>>> > attachment. Any views or opinions expressed by the author of this email do
>>>>> > not necessarily reflect the views of the University of Nottingham.
>>>>> >
>>>>> > This message has been checked for viruses but the contents of an attachment
>>>>> > may still contain software viruses which could damage your computer system:
>>>>> > you are advised to perform your own checks. Email communications with the
>>>>> > University of Nottingham may be monitored as permitted by UK legislation.
>>>>> >
>>>>> >
>>>>> > _______________________________________________
>>>>> > Xerte mailing list
>>>>> > Xerte at lists.nottingham.ac.uk
>>>>> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>>> >
>>>>> > This message and any attachment are intended solely for the addressee and
>>>>> > may contain confidential information. If you have received this message in
>>>>> > error, please send it back to me, and immediately delete it.   Please do not
>>>>> > use, copy or disclose the information contained in this message or in any
>>>>> > attachment.  Any views or opinions expressed by the author of this email do
>>>>> > not necessarily reflect the views of the University of Nottingham.
>>>>> >
>>>>> > This message has been checked for viruses but the contents of an attachment
>>>>> > may still contain software viruses which could damage your computer system:
>>>>> > you are advised to perform your own checks. Email communications with the
>>>>> > University of Nottingham may be monitored as permitted by UK legislation.
>>>>> >
>>>>> >
>>>>>
>>>>> _______________________________________________
>>>>> Xerte mailing list
>>>>> Xerte at lists.nottingham.ac.uk
>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>>
>>>> _______________________________________________
>>>> Xerte mailing list
>>>> Xerte at lists.nottingham.ac.uk
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>
>>> _______________________________________________
>>> Xerte mailing list
>>> Xerte at lists.nottingham.ac.uk
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>
>> _______________________________________________
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
-------------- next part --------------
<?

require("module_functions.php");

//Function show_template
//
// Version 1.0 University of Nottingham
// (pl)
// Set up the preview window for a xerte piece

function show_template($row_play){

		require("config.php");

		$string_for_flash_xml = $xerte_toolkits_site->users_file_area_short . $row_play['template_id'] . "-" . $row_play['username'] . "-" . $row_play['template_name'] . "/data.xml?time=" . time();

		$string_for_flash = $xerte_toolkits_site->users_file_area_short . $row_play['template_id'] . "-" . $row_play['username'] . "-" . $row_play['template_name'] . "/";

		$dimension = explode("~",get_template_screen_size($row_play['template_name'],$row_play['template_framework']));

		echo file_get_contents("modules/" . $row_play['template_framework'] . "/preview_" . $row_play['template_framework'] . "_top");

		// slightly modified xerte preview code to allow for flash vars

		echo "myRLO = new rloObject('" . $dimension[0] . "','" . $dimension[1] . "','modules/" . $row_play['template_framework'] . "/parent_templates/" . $row_play['template_name'] . "/" . $row_play['template_name'] . ".rlt','$string_for_flash', '$string_for_flash_xml', '$xerte_toolkits_site->site_url')";

		echo "</script></div></div></body></html>";

}

?>


More information about the Xerte mailing list